copy to destination only new files

. SE at SHCH262.com
Fri Jun 23 16:57:02 UTC 2023


I'm using rsync to copy files from a source folder to a destination 
folder.  It works fine.  But, to save some time, what options should I 
use to only update or copy (to the destination) files that are new 
and/or have a new time stamp on them?

Here's the code I use below (pretty sure the -n means dry-run)


rsync -r -n -t -v --progress -s '/Desktop/Book' '/media/Chip/Book June'


Thanks,

Peter

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20230623/ad22380b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x19B6B68457884FFB.asc
Type: application/pgp-keys
Size: 2436 bytes
Desc: OpenPGP public key
URL: <http://lists.samba.org/pipermail/rsync/attachments/20230623/ad22380b/OpenPGP_0x19B6B68457884FFB.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/rsync/attachments/20230623/ad22380b/OpenPGP_signature.sig>


More information about the rsync mailing list