One of my drives started to show some smart errors, so I started to movie off its content to my mergerFS pool via rsync. However the process seems to always fail - don't know if due to the drive's state or for different reasons.
The command I am using is the following:
sudo rsync -avxPH --info=progress2 --info=name0 --sparse /srv/dev-disk-by-uuid-412bd813-d998-4075-99dd-864e9ae378ec/Backups/ /srv/dev-disk-by-uuid-4ca1dab4-dabe-459f-9ced-bdb6f0d4fcb2/Backups/
the result of rsync is this:
57,421,479,937 1% 1.97MB/s 7:42:13 (xfr#682983, ir-chk=1120/39497182)
rsync: connection unexpectedly closed (535108771 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(231) [sender=3.2.7]
I have been running this command for something like 5 times already, thats the reason for the the low amount of transferred data. the disk contains mostly rsnapshot backups, so a huge amount of small files. i am not sure how many files are there on the disk, but rsync always ends with a vastly different amount of files.
what other ways I have to sync out the data from the disk? i cannot use dd because i am writing the data to an already pre-filled drive.