wrote readme, and added chown to script
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
# lcx_backup
|
# lcx_backup
|
||||||
|
|
||||||
Backupscript for LXC Container
|
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/`
|
||||||
|
|||||||
@@ -8,3 +8,5 @@ do
|
|||||||
lxc delete ${container}-backup
|
lxc delete ${container}-backup
|
||||||
done
|
done
|
||||||
|
|
||||||
|
#own data for backupuser
|
||||||
|
chown -R rick-monitoring:rick-monitoring /home/rick-monitoring/backup
|
||||||
|
|||||||
Reference in New Issue
Block a user