I am trying to implement a daily backup for a particular container with these steps:
lxc publish prod_container --alias prod_container_$(date +"%Y-%m-%d") --force
lxc image export prod_container_$(date +"%Y-%m-%d") /backups/directory
It is failing on export command with the following error:
“Error: Image fingerprint doesn’t match. Got 2d0ca593b364a************ expected ccf151403cefac611c045**************”
Since this container is used during office hours, I have been testing different methods with test container (similar in size) with no issues whatsoever, but this one in particular keeps failing on the export step. I have also tried to publish image from snapshot and export image using fingerprint generated after publishing image instead of the image name, but had same error. Maybe it’s worth mentioning that the destination directory is an nfs share, however I have also tested export on local directory and error persists.
It would be nice to make this procedure work as it is simple and will have a tar image available to fire up on any other LXD server at any time. I also prefer to backup tarballs on remote nfs share rather than LXD remote as I find it much more flexible.
Since I couldn’t replicate this issue on any other container I am sort of stuck. Do any of you have any idea where to look and why it gets different fingerprint from the one expected?