Hi all,
I thought this was a pretty "standard scenario" - however, I failed to
find reasonable tutorials or wikis about this subject. Please correct me
if I am wrong.
Idea: I have two machines, both running openSUSE Leap 15.1. Both use
btrfs in openSUSE's standard configuration (except for /home, but this
is beyond the scope of my question). I.e. there are subvolumes for /var,
/usr/local, /tmp, /srv, /root, /opt, /boot/grub2/x86_64-efi and
/boot/grub2/i386-pc. Both machines also run snapper, also in openSUSE's
standard configuration. One machine is a workstation, the other is a
data sink (i.e. a backup system or NAS). The backup system has plenty of
unpartitioned and unformatted space available.
The workstation is supposed to backup its subvolumes and snapshots
(created by snapper) to the backup system. Right now, I do not care
whether this is manual labor or a cron job - it's about principles. I am
interested in how to configure both systems so that in the event of e.g.
a disk failure in the workstation I am able to recover quickly and
efficiently from my backups on the backup system. Just for fun, let's
say in one scenario I want to recover to the exact same (wiped)
harddrive in the workstation and in another scenario I want to recover
to a new hard drive in the workstation.
So far, I have not had a defect requiring such actions. And I surely do
not want to provoke anything similar. However, I'd be very interested in
going through the steps with two "live" virtual machines - all the way
from system configuration, backup and "failure" to recovery. *Would
someone here on this mailing list be willing to support this little
experiment? I'd be more than happy to wrap the eventual findings into a
readable wiki article / tutorial.*
I have performed similar actions successfully with ZFS before (though
not for root/system partitions). As far as ZFS is concerned, I am fairly
certain about procedures and terminology. However, btrfs has slightly
different interpretations of snapshots, subvolumes and mounting
(configurations) and how (incremental) send/receive works on top of
that. After studying various articles at
btrfs.wiki.kernel.org I am
admittedly left somewhat more confused than before.
Best regards,
Sebastian
--
To unsubscribe, e-mail: opensuse-support+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-support+owner(a)opensuse.org