I have a backup of /var/snap/lxd/common/lxd/containers/$CONTAINER copied to a backup server.
Now, I have set up a new LXD server and copied this $CONTAINER directory to this new LXD server - let’s say to /data/restore/$CONTAINER.
How can I “import” it and launch?
For example, this one gives me an error:
root@restore-test /data/restore/container # lxc import .
Error: Post "http://unix.socket/1.0/instances": read /var/lib/snapd/hostfs/data/restore/container: is a directory
fback
November 13, 2021, 4:56pm
3
You can use the lxd recover
tool.
Project
LXD
Status
Implemented
Author(s)
@tomp
Approver(s)
@stgraber
Release
LXD 4.17
Internal ID
LX001
Abstract
Simplify the recovery of a LXD installation when the database has been removed but the storage pool(s) still exist with a new interactive lxd recover tool that will assist with accessing the storage pools and attempting to recreate the database records for those instances and custom volumes present.
The goal of lxd recover is disaster recovery. It is not intend…
1 Like