Secondary volume on BTRFS and backup/export

Custom storage volumes can be attached to containers and those are not part of any snapshots/backups of the container itself.

  • lxc storage volume create local some-name
  • lxc config device add container-name some-name disk source=some-name pool=local path=/srv/some-name

This would create a volume called some-name on your local pool and attach it at /srv/some-name in the container.