You introduced the necessity to reinstall SailfishOS only to restore the LVM volume layout by backing up on LVM volume level. IMO this is pretty senseless, either backup on block device level (/dev/sda79
for the Xperia 10 III) or on filesystem level for regular backups using tar
(but the latter is unsuitable for the purpose here, i.e. backing up the complete SailfishOS installation).
If one wants to backup to another device (instead of on SD-card), the easiest way is to pipe into or from scp
(in order not to resort to ancient tools as rcp
or netcat
).
I.e. for backing up
dd if=/dev/sda79 bs=4M | scp <user>@<host>:<directory>/backup-sda79_$(date -I).img
and for restoring
scp <user>@<host>:<directory>/backup-sda79_$(date -I).img | dd of=/dev/sda79 bs=4M
P.S. / Edit: Oops, scp
does not seem to be able to read from or write to a pipe.
So one may try this (also untested):
- Backup on your PC by
ssh root@10.42.66.66 "/usr/bin/cat /dev/sda79" > backup-sda79_$(date -I).img
- and restore from your PC by
ssh root@10.42.66.66 -T "/usr/bin/cat > /dev/sda79" < backup-sda79_<hit-tab-to-autocomplete>.img
P.P.S.: @niquest did it by using netcat (nc
).