I ran incus export --optimized-storage --instance-only INSTANCE_NAME /path/to/remote/NFS4/share/instance_name.tgz .
A network error caused the incus export command to die after it created the local backup and before it finished moving from the local storage to the final location. This left behind the backup file /var/lib/incus/backups/INSTANCE_NAME/backup0. (65Gig compressed)
I ran the export/backup again and instead of using or deleting the orphaned file, it created a second backup file.
#ls /var/lib/incus/backups/INSTANCE_NAME
total 126041032
-rw------- 1 root root 64533076315 Sep 8 17:06 backup0
-rw------- 1 root root 64532920754 Sep 8 19:31 backup1
After the second backup completed (2 hours later) incus export deleted backup1, but backup0 was still there.
Question 1: is it ok to just delete backup0 using rm from the console? (e.g. incus won’t care?)
Question 2: I’ve read that it’s better for backups to use the zfs pool Incus manages with storage.backups_volume to create volume in the big zfs pool . I’m guessing like so:
#incus storage volume create default big_backup
#incus set storage.backups_volume=default/big_backup
Do I have that right? The pool is the same one that holds the default containers, but backups will only be there long enough to get moved elsewhere.
Question 3: Should we periodically check-for and clear orphaned backup files? Or is there an incus backup garbage collector that runs periodically?
Question 4: Is there an option to specify that incus export should be done directly into a specified directory instead of first being put into wherever storage.backups_volume is set and then moved?
(incus version = 6.15)