Best way to back up lxd images

We are running an lxdhub (basically a remote lxd instance), to host
custom images.

What would be the recommended back up strategy to save and restore images (and maybe db files) in case something happens to the instance hosting the images?

You can export an image to a file:

lxc image export <fingerprint>

And then reimport it later using:

lxc image import
1 Like

Thanks for your answer, however I think some of the information (especially the aliases would be lost), do you have any idea on how to also preserve those?

I use the full export/import for backups…

lxc export backup.tar.gz