I am currently testing “dependent” mode and I get an error during the restore.
Very simple sample. I don’t understand my error. Any idea? Thanks.
Here is my complete test:
-
Create a container with a dependent volume
incus remote add hub https://registry.hub.docker.com --protocol=oci
incus create hub:gristlabs/grist:latest grist --profile mycontainerapp
-c environment.GRIST_DEFAULT_EMAIL="test@test.com"
-c environment.GRIST_SESSION_SECRET=“secret”
incus storage volume create zfs grist-data dependent=true
incus config device add grist grist-data disk
pool=zfs
source=grist-data
path=/persist
dependent=true -
Start & Stop the container
incus start grist
incus stop grist -
Making export
incus export grist TEST-grist.tar.gz --optimized-storage --instance-only -
Deleting the container
incus storage volume detach zfs grist-data grist
incus storage volume delete zfs grist-data
incus delete grist -
Importing the container from export
incus import TEST-grist.tar.gz gristError: Create instance from backup: Create custom volume from backup: Error starting unpack: Failed to run: tar -zxf - --xattrs-include=* --restrict --force-local --numeric-owner -C /var/lib/incus/storage-pools/zfs/custom/default_grist-data --transform=s/^backup/grist-data/volume/./ backup/grist-data/volume: exit status 2 (tar: backup/grist-data/volume : non trouvé dans l’archive
tar: Arrêt avec code d’échec à cause des erreurs précédente