My backup user should be able to create a btrfs snapshot of the system subvolume (mounted at
/). But this doesent work.
subvol=/rootfs is mounted on
subvol=/ is mounted on
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