On 2023-11-03 22:59, jdd@dodin.org wrote:
Le 03/11/2023 à 20:18, Carlos E. R. a écrit :
I don't have one yet. This is the question I asked the last week and I'm still studying.
I follox the thread but don't understand all :-(
I have managed to create those links with rsync itself when the filenames match.
is that the command you wrote in your answer?
No. It is complicated, I don't have it in my notes. Similar to rsync $OPTIONS --link-dest=$PREVIO --exclude=/lost+found \ $QUE/ $DESTINO$QUE I have my phone backup: phone/date1/* phone/date2/* So I do: OPTIONS="--archive --acls --xattrs --hard-links --sparse --stats --human-readable --checksum" rsync $OPTIONS phone/date1/ NewPhoneBackup/date1 rsync $OPTIONS --link-dest=NewPhoneBackup/date1 \ phone/date2/ NewPhoneBackup/date2 The new backup will have hardlinks created for identical files in phone/date1/* and phone/date2/* Then I delete both phone/date1/* and phone/date2/*
OPTIONS="--archive --acls --xattrs --hard-links --sparse --stats --human-readable "
These are the options I normally pass onto rsync in my scripts.
as I understand it copies the hard links as they are.
I don't find rdfind for tumbleweed and fdupes -L don't looks ok according to the man page
too late for today :-)
thanks jdd
-- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))