Skip to content

Instantly share code, notes, and snippets.

@Voronenko
Created September 18, 2015 09:06
Show Gist options
  • Save Voronenko/9d2ef333f7b653758854 to your computer and use it in GitHub Desktop.
Save Voronenko/9d2ef333f7b653758854 to your computer and use it in GitHub Desktop.
Safe files pump from box to box
# rsync -aAXvzh --progress --delete --ignore-errors --delete-excluded <path> <remote_host>:<remote_path>
rsync -aAXvzh --progress --delete --ignore-errors --delete-excluded --exclude={"/home/*/.cache/*","/home/*/Movies/*","/home/*/Music/*","/home/*/.Skype/*"} -- " /home /root /etc remote_host:~/backups/`hostname`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment