Last active
April 12, 2022 18:48
-
-
Save 8dcc/1fd4bf9d0ebffac0fab57982a8996f74 to your computer and use it in GitHub Desktop.
Using rsync in windows (External drive)
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
# Will backup the 'D:/Stuff' folder to 'E:/Stuff' (Will create the folder if does not exist) | |
rsync -av /cygdrive/d/Stuff /cygdrive/e | |
# Will ignore exising files | |
rsync -av --ignore-existing /cygdrive/d/Stuff /cygdrive/e | |
# Will delete files that no longer exist in 'D:/Stuff' | |
rsync -av --delete /cygdrive/d/Stuff /cygdrive/e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment