William Unruh
2022-11-06 17:14:19 UTC
I am trying to copy a backup on a usb hard drive. The usb partition is
ext4 as is the partition I am trying to back up
mount
/dev/nvme0n1p8 on / type ext4 (rw,noatime)
/dev/sda2 on /run/media/unruh/ab7c8370-e9d4-495f-a9fa-a18e803dd9ca type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)
/dev/sda2 is a usb drive. / is an internal ssh drive.
I run
rsync -avxAHXp --link-dest ./crawler-root-aug12-2022 / ./crawler-root-nov6-2022
while on the backup directory on the usb drive (mounted in
/run/media/unruh)
But for example
crawler:0[root]>ls -l crawler-root-*-2022/dead.letter
-rw------- 2 root root 7210272 Dec 12 2021 crawler-root-aug12-2022/dead.letter
-rw------- 1 root root 7210272 Dec 12 2021 crawler-root-nov6-2022/dead.letter
shows that dead.letter was copied over, not hard linked.
diff on the two says there is no difference between the two files, so
they should have been hard linked not copied.
I have also tried with
rsync -avxAHXp --link-dest=./crawler-root-aug12-2022 / ./crawler-root-nov6-2022
but the same thing happens (no hard link)
(Note that the fact that crawler-root-aug12-2022/dead.letter has a hard
link, that is to a previous backup I made. Even if I erase all of crawler-root-nov6-2022
its hard link status remains at 2)
Can anyone offer me a clue as to what could be going wrong?
ext4 as is the partition I am trying to back up
mount
/dev/nvme0n1p8 on / type ext4 (rw,noatime)
/dev/sda2 on /run/media/unruh/ab7c8370-e9d4-495f-a9fa-a18e803dd9ca type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)
/dev/sda2 is a usb drive. / is an internal ssh drive.
I run
rsync -avxAHXp --link-dest ./crawler-root-aug12-2022 / ./crawler-root-nov6-2022
while on the backup directory on the usb drive (mounted in
/run/media/unruh)
But for example
crawler:0[root]>ls -l crawler-root-*-2022/dead.letter
-rw------- 2 root root 7210272 Dec 12 2021 crawler-root-aug12-2022/dead.letter
-rw------- 1 root root 7210272 Dec 12 2021 crawler-root-nov6-2022/dead.letter
shows that dead.letter was copied over, not hard linked.
diff on the two says there is no difference between the two files, so
they should have been hard linked not copied.
I have also tried with
rsync -avxAHXp --link-dest=./crawler-root-aug12-2022 / ./crawler-root-nov6-2022
but the same thing happens (no hard link)
(Note that the fact that crawler-root-aug12-2022/dead.letter has a hard
link, that is to a previous backup I made. Even if I erase all of crawler-root-nov6-2022
its hard link status remains at 2)
Can anyone offer me a clue as to what could be going wrong?