Skip to content

Instantly share code, notes, and snippets.

@8dcc
Last active April 12, 2022 18:48
Show Gist options
  • Save 8dcc/1fd4bf9d0ebffac0fab57982a8996f74 to your computer and use it in GitHub Desktop.
Save 8dcc/1fd4bf9d0ebffac0fab57982a8996f74 to your computer and use it in GitHub Desktop.
Using rsync in windows (External drive)
# 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