On 01/11/2018 07:13 PM, jdd@dodin.org wrote:
Hello,
The web is filled with rsync examples, but I found none that fit my needs an find and rsync options are really hard to manage.
I have a tree of various files I use frequently, that get larger each year.
I want to archive them by year or range of years (example from start to 2010, from 2011 to 2012... at the end nothing must be ommitted
I have a lot of 32Gb sd cards and the whole file shouldn't be more than 3 or 4 cards.
What is the best way to do this?
TBH this sounds more like a one-time moving task rather than a regular sync. Of course, you can use rsync as part of the solution, but it would be interesting to understand more what you want to do. Do you have a random, nested directory structure like dir/a/file-from-2010 dir/a/file-from-2012 dir/a/x/file-from-2013 dir/b/c/file-from-2014 dir/file-from-2011 ... and want to archive the files based on their modification timestamp?
I would like to use the --delete option, because I may remove old files on source
The --delete option does not delete on SRC side, but would remove files/directories on the DST side if the file does not exist on SRC side. Have a nice day, Berny -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org