Skip to content

Instantly share code, notes, and snippets.

@dalraf
Last active January 20, 2017 19:41
Show Gist options
  • Select an option

  • Save dalraf/331d4fdcc817c3cbe0886c557cd40a24 to your computer and use it in GitHub Desktop.

Select an option

Save dalraf/331d4fdcc817c3cbe0886c557cd40a24 to your computer and use it in GitHub Desktop.
Backup Freenas
rsync -rvt --delete -e "ssh -p 5252" --log-file=/var/log/backupdiario.log 192.168.1.1:/home /mnt/dados && echo 0 > /var/log/backupstatus || echo 1 > /var/log/backupstatus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment