- Do you expect that your files are in the same positions in the directory trees of dropbox and your own file system?
This is easily done with rsync (if rsync works with dropbox)
Code:
rsync -Havun dropbox/pictures/ your/pictures
and when you see that it looks OK, run the real command line without the option n (dry run).
From
Code:
-u, --update
This forces rsync to skip any files which exist on the destination and have a modified
time that is newer than the source file. (If an existing destination file has a modifi‐
cation time equal to the source file’s, it will be updated if the sizes are different.)
Note that this does not affect the copying of symlinks or other special files. Also, a
difference of file format between the sender and receiver is always considered to be
important enough for an update, no matter what date is on the objects. In other words,
if the source has a directory where the destination has a file, the transfer would occur
regardless of the timestamps.
This option is a transfer rule, not an exclude, so it doesn’t affect the data that goes
into the file-lists, and thus it doesn’t affect deletions. It just limits the files
that the receiver requests to be transferred.
- Or do you want to check for duplicates wherever they might be?
This is harder and means you have to check recursively for each file through your file system if it matches with your dropbox file.
Bookmarks