My backup user should be able to create a btrfs snapshot of the system subvolume (mounted at /
). But this doesent work.
Setup: subvol=/rootfs
is mounted on /
and subvol=/
is mounted on /btrfs
First:
root# mkdir /btrfs/backup && chown backup:backup /btrfs/backup
then as backup user:
backup$ btrfs subvol snapshot / /btrfs/backup/rootfs
Create a snapshot of '/' in '/btrfs/backup/rootfs'
ERROR: cannot snapshot '/': Operation not permitted
If I change the owner of /
to be the backup user, it works, but is this the right way?
Ubuntu 16.04 / Linux 4.4.0-59-generic / btrfs-progs v4.4