wrote readme, and added chown to script

This commit is contained in:
rick
2019-08-03 20:59:54 +02:00
parent ab51b83327
commit 159ccb7665
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
# 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/`

View File

@@ -8,3 +8,5 @@ do
lxc delete ${container}-backup
done
#own data for backupuser
chown -R rick-monitoring:rick-monitoring /home/rick-monitoring/backup