Disaster recovery on home office server (ZFS backend)

Thanks, really appreciate the time. I’m still going around in circles, most likely due to something not obvious to me but that is ion fact really simple. So apologies in advance.

I tried changing the backup.yaml info and deleted the folder in the old mount point which got rid of the error but then got a new one;

$ lxd import default-minimal
Error: Checking snapshots: Failed to run: zfs get -H -r -o name name datasilo1/lxd2/containers/default-minimal: cannot open 'datasilo1/lxd2/containers/default-minimal': dataset does not exist

I have added my pool structure for both the old and new datasets below. As part of the steps I did previsouly, I changed the name of the “old” dataset from datasilo1/lxd to datasilo1/lxd-old and for the current LXD set-up I created a new dataset datasilo/lxd2

There are two containers I want to try save: “apps-services” and “default-minimal”

Below the zfs list is the relevant bits from the original backup.yaml

$zfs list | grep lxd

datasilo1/lxd-old                                                                                  13.2G  3.50T      128K  none
datasilo1/lxd-old/containers                                                                       13.0G  3.50T      128K  none
datasilo1/lxd-old/containers/apps-services                                                         12.7G  3.50T     12.9G  /var/snap/lxd/common/lxd/storage-pools/datasilo1/containers/apps-services
datasilo1/lxd-old/containers/default-minimal                                                        255M  3.50T      397M  /var/snap/lxd/common/lxd/storage-pools/datasilo1/containers/default-minimal
datasilo1/lxd-old/custom                                                                            128K  3.50T      128K  none
datasilo1/lxd-old/deleted                                                                           237M  3.50T      128K  none
datasilo1/lxd-old/deleted/containers                                                                128K  3.50T      128K  none
datasilo1/lxd-old/deleted/custom                                                                    128K  3.50T      128K  none
datasilo1/lxd-old/deleted/images                                                                    236M  3.50T      128K  none
datasilo1/lxd-old/deleted/images/87b2e5de9de0c2337045b609e6475ba30763f106c6e4c9aa666e6a960cd1820f   236M  3.50T      236M  none
datasilo1/lxd-old/deleted/virtual-machines                                                          128K  3.50T      128K  none
datasilo1/lxd-old/images                                                                            128K  3.50T      128K  none
datasilo1/lxd-old/snapshots                                                                         128K  3.50T      128K  none
datasilo1/lxd-old/virtual-machines                                                                  128K  3.50T      128K  none
datasilo1/lxd2                                                                                      681M  3.50T      128K  none
datasilo1/lxd2/containers                                                                          91.6M  3.50T      128K  none
datasilo1/lxd2/containers/test                                                                     91.5M  3.50T      376M  /var/snap/lxd/common/lxd/storage-pools/default/containers/test
datasilo1/lxd2/custom                                                                               128K  3.50T      128K  none
datasilo1/lxd2/deleted                                                                              295M  3.50T      128K  none
datasilo1/lxd2/deleted/containers                                                                   128K  3.50T      128K  none
datasilo1/lxd2/deleted/custom                                                                       128K  3.50T      128K  none
datasilo1/lxd2/deleted/images                                                                       294M  3.50T      128K  none
datasilo1/lxd2/deleted/images/566410cdfa395c7ae22489a9998e7626d95252451e6d2d3db30e52a77a4b3d83      294M  3.50T      294M  /var/snap/lxd/common/lxd/storage-pools/default/images/566410cdfa395c7ae22489a9998e7626d95252451e6d2d3db30e52a77a4b3d83
datasilo1/lxd2/deleted/virtual-machines                                                             128K  3.50T      128K  none
datasilo1/lxd2/images                                                                               294M  3.50T      128K  none
datasilo1/lxd2/images/cb3bea6bc536e3cb6ebbfd37cdd46203c4abe84bdc095aa5f418e9bc6e7b2327              294M  3.50T      294M  /var/snap/lxd/common/lxd/storage-pools/default/images/cb3bea6bc536e3cb6ebbfd37cdd46203c4abe84bdc095aa5f418e9bc6e7b2327
datasilo1/lxd2/virtual-machines                                                                     128K  3.50T      128K  none

Current edited config for default-minimal:

pool:
  config:  
    source: datasilo1/lxd-old
    volatile.initial_source: datasilo1/lxd-old
    zfs.pool_name: datasilo1/lxd-old   
  description: "" 
  name: default
  driver: zfs
  used_by: []
  status: Created   
  locations:
  - none

Original config for default-minimal:

pool:
  config:  
    source: datasilo1/lxd
    volatile.initial_source: datasilo1/lxd
    zfs.pool_name: datasilo1/lxd
  description: "" 
  name: datasilo1
  driver: zfs
  used_by: []
  status: Created   
  locations:
  - none

As I mentioned before, I’m a bit out of my depth and appreciate the effort and the time in helping me. Thank you.

Hard lesson learnt about those backups…

Brendan