PenningLabs / lxconsole

LXD Graphical Web Console
GNU Affero General Public License v3.0
161 stars 19 forks source link

Question: Where are backups stored? #29

Open intrepidsilence opened 1 month ago

intrepidsilence commented 1 month ago

In the absence of providing a path, where are backups stored? Is there any way to change it?

matthewalanpenning commented 1 month ago

There are two parts to backups. First when you create a backup an API request is sent to the Incus/LXD server to request a backup. There is no option to choose a path and the system creates a backup on that server. For example, Incus backs up to /var/lib/incus/backups and LXD backs up to /var/snap/lxd/common/lxd/backups.

The second part of the backup is the export. This again is an API request to the remote server which initiates a file transfer to a local directory. In LXConsole, that stores them to the backups directory located in root of the apps directory. The docker image of LXConsole stores backups at /opt/lxconsole/backups. This path is configured in the https://github.com/PenningLabs/lxconsole/blob/main/lxconsole/api/instance.py file (line 594).

I currently do not have a way to easily change that location but could look at providing a setting change to allow that path to be different.