Hi all, I'm having a bit of a problem with rsync. I'm using it to sync files from my dropbox folder to my local drive and vice versa on my linux machine; as in I can make changes to either side and it'll copy them over if I run my bash script. The problem that I'm having is that I'm getting a whole bunch of duplicate folders when I rename anything, for example if I had a folder called "Folder1" and it had 100 MB in it and I wanted to rename it to "Folder2" (I'm not known for my creativity) I would then have two folders with 100MB each in them. This is a problem for a number of reasons: Dropbox size limits, Time spent syncing, confusion with two similarly named folders, etc. I was wondering if there was some way to have it recognize renames or at least copy over the newer folder and delete the old one. This is my bash script for syncing my files:
I dual boot so I also run Windows occasionally, hence the "modify-window=1" for the time discrepancies that I've been told occur when copying between linux and windows machines. Any help for this is appreciated, thanks for your time.
rsync -r -t -v --progress -u --modify-window=1 /media/Storage/workspace/ /media/Storage/Dropbox/workspace/
rsync -r -t -v --progress -u --modify-window=1 /media/Storage/Dropbox/workspace/ /media/Storage/workspace/
rsync -r -t -v --progress -u --modify-window=1 /media/Storage/BCIT/ /media/Storage/Dropbox/BCIT/
rsync -r -t -v --progress -u --modify-window=1 /media/Storage/Dropbox/BCIT/ /media/Storage/BCIT/