LXD Export backup

lxd

(Eric Wolf) #1

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.


(Christian Brauner) #2

Hm, that’s odd. Here I get:

chb@conventiont|~
> lxc export alp3 alp3-backup.tar.xz
Backup exported successfully!
chb@conventiont|~
> file alp3-backup.tar.xz
alp3-backup.tar.xz: XZ compressed data

(Christian Brauner) #3

See also:
asciicast


(Eric Wolf) #4

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)