#Rsync - help copy only missing files from one drive to another

1 messages · Page 1 of 1 (latest)

austere canopy
#

I have two hard drives ("b4old" and "b4"). They both contain some duplicate files (although metadata such as modified/created dates may differ), but there are some files on b4old that are not present on b4 at all. I want to rsync only those files onto b4.

I tried to run the below command as a dry run, but I checked the log and there are files completely missing on b4 that aren't in the log. What am I doing wrong?

sudo rsync -avvxHAWX -n --numeric-ids --info=progress2 /srv/b4old/ /srv/b4/ --log-file=/config/2023-05-27-1243-rsync.log

modest karma
#

rsync --ignore-existing -av source/ destination/ -- This is important if you justy want to copy the missing stuff. --ignore-existing will not copy/modify existing files on destination from source.

austere canopy