Hi,
Trying to use the native backup solution for LXD, I kept encountering trouble of ‘no such file or directory’:
djwhyte@server1:/data/shared/Not Backed-Up/db_backups$ lxc export hass /data/shared/Not\ Backed-Up/lxd_backups/hass.tar.xz --container-only
Error: open /data/shared/Not Backed-Up/lxd_backups/hass.tar.xz: no such file or directory
djwhyte@server1:/data/shared/Not Backed-Up/db_backups$ sudo lxc export hass /data/shared/Not\ Backed-Up/lxd_backups/hass.tar.xz --container-only
[sudo] password for djwhyte:
Error: open /data/shared/Not Backed-Up/lxd_backups/hass.tar.xz: no such file or directory
djwhyte@server1:/data/shared/Not Backed-Up/db_backups$ lxc export hass /data/shared/Not\ Backed-Up/lxd_backups/hass.tar.xz --container-only
Error: open /data/shared/Not Backed-Up/lxd_backups/hass.tar.xz: no such file or directory
djwhyte@server1:/data/shared/Not Backed-Up/db_backups$ sudo lxc export hass /data/shared/Not\ Backed-Up/lxd_backups/hass.tar.xz --container-only
[sudo] password for djwhyte:
Error: open /data/shared/Not Backed-Up/lxd_backups/hass.tar.xz: no such file or directory
After some research, I now think this might be because the LXD snap won’t have writable access to /data/shared/Not Backed-Up/lxd_backups.
I am new to snaps. Is there anyway to relax the restrictions on the snap so it could write to that directory?
Thanks,
Whytey