/home/me/data/A1 /home/me/data/foo.txt /home/me/data/A2 /home/me/data/A3and wanted to make sure that my backup tree, located at /home/me/backup/data/ is an exact copy. so that the result is
/home/me/backup/data/A1 /home/me/backup/data/foo.txt /home/me/backup/data/A2 /home/me/data/data/A3The command is
cd /home/me rsync -atrv --delete data /home/me/backup
/home/me/backup/A1 /home/me/backup/foo.txt /home/me/backup/A2 /home/me/data/A3Then the command is
cd /home/me rsync -atrv --delete data/ /home/me/backupNotice the difference is the use of the / at the end of data.
cd /cygdrive/g rsync -apvtr --delete --chmod=ugo=rwX data/ /cygdrive/L/data/Notice the use of "/" above. Also the use of chmod. If I do not use this, then all the files on L:/data/ will have permissions that does not allow me to read them. The fixes this. Credit for this trick is due to this post