Lxd place problem in host

i create and lxd in 50 gig ubuntu and mount 1TB disk from nas and gave it as zfs to lxd.
when i try to backup lxd from host it create a image first on local and i don’t more than 50 gig on local and backup of lxd image stop and make it error. What should i do?

I think it is probably using /var/snap/lxd/common/lxd/backups/ - you could mount that directory from your NAS too. This is assuming you are using the snap installed lxd, if not I think it might well be in /var/lxd or similar.

I using snap. i mean i have a diretory /var/snap/lxd/common/lxd/backups/
i start a backup (in test lxd) there are nothing there
here is my backup scriys:
#!/usr/bin/env bash
set -ex

BACKUP_DIR=/mnt/archive/linux_containers/
#HOSTS=($(lxc list -c n --format csv))
HOSTS=(test)
for HOST in “${HOSTS[@]}”
do
BACKUP_NAME=${HOST}-$(date +"%Y-%m-%d")

lxc snapshot ${HOST} auto-backup
lxc publish ${HOST}/auto-backup --alias ${BACKUP_NAME}
lxc image export ${BACKUP_NAME} ${BACKUP_DIR}/${BACKUP_NAME}.tar.gz
lxc image delete ${BACKUP_NAME}
lxc delete ${HOST}/auto-backup

done

i can find test in auto-backup directory but the director is empty.