On Wed, 14 Oct 2020 10:48:20 +0200 (CEST) "Carlos E. R." <robin.listas@telefonica.net> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
I have an image of a disk that contains backups done with rsync, done originally this way:
+++............. PREVIO=/run/media/linux/Erebor_2/Portatil_entero_6 DESTINO=/run/media/linux/Erebor_2/Portatil_entero_7
OPTIONS="--archive --acls --xattrs --hard-links --sparse --stats --human-readable --checksum"
rsync $OPTIONS --link-dest=$PREVIO/rsync_root /run/media/linux/Root/ $DESTINO/rsync_root .............++-
It worked. Example:
+++............. localhost:/data/Datum/mountpoint # l Portatil_entero_?/rsync_Home/cer/spamassassin.zip - -rw-r--r-- 2 cer users 7592643 Jun 10 2016 Portatil_entero_6/rsync_Home/cer/spamassassin.zip - -rw-r--r-- 2 cer users 7592643 Jun 10 2016 Portatil_entero_7/rsync_Home/cer/spamassassin.zip localhost:/data/Datum/mountpoint # .............++-
^
It is the same file, and the "2" is indicative of being hardlinks, I believe.
I think that's correct.
But when I copy all that to another disk using rsync and telling I want to keep hardlinks, they are not.
+++............. OPTIONS="--archive --acls --xattrs --hard-links --sparse --partial-dir=.rsync-partial --stats --human-readable"
time rsync $OPTIONS root@telcontar.valinor://data/Datum/mountpoint/Portatil_entero_7/ /data/Portatil_entero_7 time rsync $OPTIONS root@telcontar.valinor://data/Datum/mountpoint/Portatil_entero_6/ /data/Portatil_entero_6 .............++-
I get:
+++............. Erebor:/data # l Portatil_entero_?/rsync_Home/cer/spamassassin.zip - -rw-r--r-- 1 cer users 7592643 Jun 10 2016 Portatil_entero_6/rsync_Home/cer/spamassassin.zip - -rw-r--r-- 1 cer users 7592643 Jun 10 2016 Portatil_entero_7/rsync_Home/cer/spamassassin.zip Erebor:/data # .............++-
The "1" indicate they are real files both, not hardlinks one to the other.
I think that's also correct. I expect there's a way to check by listing numerical IDs instead of filenames or somesuch, depending on the filesystem.
Why, what did I do wrong?
Probably silly question, but what's the filesystem structure? i.e. it is possible to make hard links between those two directories, isn't it? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org