Created
February 13, 2020 18:16
-
-
Save BoZenKhaa/eb5189f11d1ad08a7167c367632bad99 to your computer and use it in GitHub Desktop.
Backup with rsync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -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 [email protected]:/path/source/ ./path/destination/ --delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment