On Sunday, 21 July 2019 14:45:13 BST Sebastian M. Ernst wrote:
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.
I use btrfs-sxbackup which allows me to stream the subvolumes. I can stream
all of my subvolumes with a simple btrfs-sxbackup run * from the backup
location and another script that allows me to restore subvolumes. I have
tested this building a duplicate drive as well as had to use it for real. It
is a pretty good tool built around btrfs send and receive commands. Hope this
To unsubscribe, e-mail: opensuse-support+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-support+owner(a)opensuse.org