If snapshots expire during this process, the export bombs out:
Error: Create backup: Backup create: Failed to run: zfs send -i rpool/lxd/containers/c1@snapshot-snap2897 rpool/lxd/containers/c1@snapshot-snap2898: exit status 1 (cannot open ‘rpool/lxd/containers/c1@snapshot-snap2898’: dataset does not exist)
What’s the recommended way to backup large containers? Is there a way to pause snapshot pruning while the backup is in progress?
When using --optimized-storage, if the storage driver already uses compression (like ZFS does), you might be better off by using --compression=none. An alternative would also be to use zstd directly on the zpool itself if you want. This alternative would require changing this setting manually yourself though as LXD doesn’t expose this.
This looks like a legitimate issue worth reporting here please!