Le 15/01/2018 à 11:29, Bernhard Voelker a écrit :
you have blanks and other special characters in file names. The only safe way to handle this between tool is to use NUL-terminated strings.
hope it solve this part of the problem, but not all: ./culte/mulet-reborn.bk/etc/init.d/nmbln: failed to create hard link '/data-ssd480/tmp/./culte/mulet-reborn.bk/etc/init.d/nmb' => './culte/mulet-reborn.bk/etc/init.d/nmb': No such file or directory I think the problem come from the "/./" in the middle. This come from find issuing ./ on the beginning of every result? the blank spaces in filesnames are also a problem, mostly because there may also b single qotes in them (they are french books names, created by calibre)
I'm surprised why so many guys here suggest creating a hierarchy with hardlinks with the files falling in the year range. Well, you could also store it in a database, or write it on a paper and send it around the world before processing further. ;-)
the problem is the use of the --delete option. I want to be able to update the target from time to time and have it identical to the source. If a file is deleted from the source, it have to be also deleted from the target also. this should be allowed if the hard links folder have only the desired files
As I already wrote:
- let find create a NUL-terminated list of files from e.g. 2013:
$ cd DIR $ find . -type f -newermt 2013-01-01 ! -newermt 2014-01-01 -print0 > list
- let e.g. copy the files from the list to the backup medium:
$ mkdir BACKUP/2013 $ rsync -HAXaxv --from0 --files-from='list' '.' BACKUP/2013/.
this works, but I may get an error "no space left on device", so then I have to change the source range to be smaller, but I have to delete the now unneeded files *on the target*
- remove the files from the source (after you have checked the backup):
nope I want to keep all the files on the source and use several sd cards as target, each with different times thanks jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org