On 01/11/2018 12:13 PM, jdd@dodin.org wrote:
I would like to use the --delete option, because I may remove old files on source
thanks jdd
My first thought is use use 'find' to dump the list of files you want to transfer for each period of time (each year) to a file (e.g. <yearfile>). Either using the -newermt <start date> ! -newermt <stop date> options, or using the same logic with -mtime. (I do this to shuffle package sets between different boxes) Then use the file you create containing all the files to tell rsync what files get transferred for each year. You can then use rsync with the options -uai --delete --no-R --files-from=<yearfile> / *note:* the '--no-R' (--no-relative) and '/' (or whatever your dest path is) are required when using --files-from= as --relative is implied when using --files-from= (the man page does a pretty good job explaining) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org