Created
October 19, 2024 13:41
-
-
Save agalazis/db608a3400f7dd26b58a34a1ab9b2eed to your computer and use it in GitHub Desktop.
Most useful rsync flags for syncing folders
This file contains 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 -rtOvcs --progress -n ./src/ ./destination/ | |
--recursive, -r recurse into directories | |
--times, -t preserve modification times | |
--omit-dir-times, -O omit directories from --times | |
--verbose, -v increase verbosity | |
--checksum, -c skip based on checksum, not mod-time & size | |
--secluded-args, -s use the protocol to safely send the args |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment