449 B
449 B
lcx_backup
Backupscript for LXC Container
This script creates a copy of all running containers, backs them up (via lxc export) and deletes them afterwards.
Copys are created to prevent database inconsistencies -> copies are way faster than exports
Default backuppath for lxd snap installs are /var/snap/lxd/common/lxd/backups you can simlink this dir to your favorite backup destination
In this script its /home/rick-monitoring/backup/