Last active
June 27, 2024 14:06
-
-
Save niun/be8e572039d9a8c6644e to your computer and use it in GitHub Desktop.
rsync backup cheatsheet
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
rsync -raXi --size-only /path/to/folder-to-backup/ /destinations/path/to/folder-to-backup | |
same as | |
rsync -rlptgoDXi --size-only /path/to/folder-to-backup/ /destinations/path/to/folder-to-backup | |
same as | |
rsync -rlptgoDXi --size-only /path/to/folder-to-backup /destinations/path/to | |
-r recursive | |
-l preserve links | |
-p preserve permissions (also updates permission on not transferred files) | |
-t preserve time (also updates time on not transferred files) | |
-g preserve group | |
-o preserve owner | |
-D preserve device and special files | |
-X preserve xattrs | |
--size-only don't use time to decide if file needs update | |
-i, --itemize-changes output a change-summary for all updates | |
-u don't update files that are newer on the receiver | |
-n just simulate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment