I am trying to export a container to compressed tar file using following command,
lxc export nextcloud nextcloud_optimized.tar.xz --container-only --optimized-storage
and end up getting following error after running for about an hour,
Error: Create backup: Backup storage: open /var/snap/lxd/common/lxd/backups/nextcloud/backup0: no such file or directory
Note that on checking the location mentioned above, there exists a file
Scarping through github issues, came across this particular issue but that seems to have been resolved.
It’d be great if someone can guide me in resolving this issue and/or point in right direction.
P.S - I am using Client/Server version 3.11, ZFS for storage and container in question is ~80 GB.
Ran the same command again and this time it returned a different error, see below,
Error: Create backup: Backup storage: remove /var/snap/lxd/common/lxd/backups/nextcloud/backup0
I was also running
lxc monitor --pretty --type=logging --loglevel=debug which had an entry in there pointing to removal of container backup before the export operation failed.
Based on this I believe lxc export is performing a cleanup when it encounters missing
backup0 file and fails right away. Also this failure leaves a dangling file