I want to make a backup script running every night, my idea is :
- make a snapshot (very fast with ZFS):
lxc snapshot php70 bck-daily --reuse
- copy this snapshot on a remote server though LXD API with
copy
command, overriding container name on remote:lxc copy local:php70/bck-daily xxx:bck-php70
Is there a better way ?
I have one problem with this solution I can’t copy container with the same name on remote:
Error: Failed instance creation: Failed creating instance record: Add instance info to the database: This "instances" entry already exists
Is there a solution ?
There is no --force
or --reuse
flag on copy
command
Subsidiary question, is it possible to make incremental copy to accelerate backup ?
Thanks