Skip to content

Instantly share code, notes, and snippets.

@BoZenKhaa
Created February 13, 2020 18:16
Show Gist options
  • Save BoZenKhaa/eb5189f11d1ad08a7167c367632bad99 to your computer and use it in GitHub Desktop.
Save BoZenKhaa/eb5189f11d1ad08a7167c367632bad99 to your computer and use it in GitHub Desktop.
Backup with rsync
# -a archive flag (keep timestamps, )
# -h human readable
# -v verbose
# --delete delete files from destination that are missing in source
# --dry-run perform dry run
# If folders end with /, copy the content and not the folder itself
rsync -ah --info=progress2 login@server.vom:/path/source/ ./path/destination/ --delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment