With the release of LXD 3.1, lxc export is available for backing up containers. Where does the backup file end up? I ran lxc export Proxy proxy-backup.tar.xz but the file ‘proxy-backup.tar.xz’ did not appear in the directory.
lxc export Proxy proxy-backup.tar.xz
Hm, that’s odd. Here I get:
> lxc export alp3 alp3-backup.tar.xz
Backup exported successfully!
> file alp3-backup.tar.xz
alp3-backup.tar.xz: XZ compressed data
Okay so I’ve figured out that if my current directory is my backup folder on an attached btrfs volume, it sends the file to /var/lib/snapd/void/. Not sure what’s going on, but it works as expected if I’m in my home directory (which is on my root volume)