How would it be possible to copy all new contents from one directory to another so that only new files are copied from the source directory (both directories have the same naming tree).

rsync was designed exactly to solve this problem:

[$]> rsync -av --ignore-existing dirA/ dirB/


Leave a Reply

Your email address will not be published. Required fields are marked *