Lxd restore from backup

My OS drive had a problem so I had to replace with a fresh install of snap/lxd. I copied /var/snap/lxd/common/lxd/database from my backup and all the containers came up fine. Is there anything else i should copy from my lxd backup?


Assuming you also had the container storage back in place, no, that should be about it.
Image files are kept separate but if all your images were cached copies of public images, there’s no need to do anything about it.

The rest of the data outside of the database is runtime information that’s generated when the container starts and log files.

Thanks. I also had a remote lxd instance whose information was lost. So I had to do a ‘lxc remote add $server $ip’. I guess this information is not store in the database.

Remotes are a concept of the CLI tool alone, there is no such thing in the API or server side.
The remotes and associated certificates are therefore stored in your home directory.