documentation: README.md: add non-volume examples

pull/411/head
Axel Burri 2021-07-24 22:08:59 +02:00
parent b658fba08c
commit 1eee2c0d2e
1 changed files with 15 additions and 2 deletions

View File

@ -93,8 +93,8 @@ The examples below assume that the btrfs subvolume containing `home`
and `rootfs` is mounted at `/mnt/btr_pool`. This is usually the btrfs
root subvolume, which always has `subvolid=5`.
Note that mounting subvolid=5 is *mandatory* if you want to backup
your root filesystem `/`.
Mounting `subvolid=5` is *recommended* (mandatory for btrbk < v0.32.0)
if you want to backup your root filesystem `/`.
/etc/fstab:
@ -139,6 +139,19 @@ be created manually:
sudo mkdir /mnt/btr_pool/btrbk_snapshots
The "volume" section is merely used as a specifier for a base
directory, and can be skipped if you prefer to configure everything
using absolute paths. The above configuration can also be written as:
snapshot_dir /mnt/btr_pool/btrbk_snapshots
subvolume /mnt/btr_pool/home
If you don't want to mount the btrfs root filesystem to
`/mnt/btr_pool`, you might as well configure it like this:
snapshot_dir /btrbk_snapshots
subvolume /home
Start a dry run:
sudo btrbk run -n