
Am 16.10.23 um 15:39 schrieb bent fender:
Mon, 16 Oct 2023 14:17:45 +0200 Roger Oberholtzer <roger.oberholtzer@gmail.com> :
If, as part of a disaster recovery system, you wanted to make a copy of your openSUSE OS disk, what are the best programs to use? I guess as part of this there is the discussion of what might need to be changed if the image is on another disk (/etc/fstab) for example).
How about rescuezilla?
-- Roger Oberholtzer
My 2 cents says when push comes to shove you would want bare bones commands and no YSOA (Yet Some Other App) to do the honors.
dd, hands-on and hands down.
something like this (only example, you must set it to your needs): cat /dev/zero > /mnt/nvme0n1p1/deleteme cat /dev/zero > /mnt/nvme0n1p2/deleteme (yes i know, much write operations on nvme not pretty good, for sdX never a problem and works also for more than 5 years 3-5 times a year on my nvme's) then DONE FROM A NOT MOUNTED DRIVE (example boot from "systemrescuecd") (or a second installed mimimal opensuse on a second drive -> there you could write nice shell script to backup automatic) dd if=/dev/nvme0n1 conv=noerror,sync |pv| pbzip2 -c > backup.img.bz2 or (if you know the size of the drive, and like to speed up the reading with bigger inputblocksize) dd ibs=1024 if=/dev/nvme0n1 conv=noerror,sync |pv -s 512110190592| pbzip2 -c > backup.img.bz2 or something with ddrescue such a backup will work without problems when bring it to a new drive, bigger or same size than the old. it could be that you have to adjust fstab, it depends how you have the drive names configured there. for this i like the sda nvme... design of names more than the exact "lkjasdl2123öljkölk" drive names. it will boot without problems from new drive if not the exact names are specified there.
yes, fstab & grubwork 4 sure.
simoN -- ========== www.becherer.de