Le 12/01/2018 à 09:46, Aaron Digulla a écrit :
Try to create a second folder structure using find(1) and the option "-newermt" (see https://unix.stackexchange.com/questions/73268/how-to-move-the-files-based-o... for an example how to use a date range).
Hello, thanks, I try to follow this track. I can't make it work. find . -type f ! -newermt 2017-01-01 or find `pwd` -type f ! -newermt 2017-01-01 gives me files names from which I can't make a link may be because some file names are odd /data-ssd480/mesdocs-jdd/livres/cal/Dick,Philip K_/L'oeil dans le ciel (763)/L'oeil dans le ciel - Dick,Philip K_.epub but also ln problems find . -type f ! -newermt 2017-01-01 -exec ln "{}" "/data-ssd480/tmp/{}" \; gives: ln: impossible de créer le lien direct '/data-ssd480/tmp/./culte/mulet-reborn.bk/etc/sysconfig/mail' → './culte/mulet-reborn.bk/etc/sysconfig/mail': Aucun fichier ou dossier de ce type
Use hardlinks (ln(1) without -s) to "create" the files in the per-year directory structure, for example:
-exec ln "{}" "/path/to/backup/2012/{}" \;
in ln, may not the target be before the source? (tried and not seems to give better result) thanks jdd -- http://dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org