From 159ccb766533d001b569a870ee74ec14818d9095 Mon Sep 17 00:00:00 2001 From: rick Date: Sat, 3 Aug 2019 20:59:54 +0200 Subject: [PATCH] wrote readme, and added chown to script --- README.md | 8 +++++++- lxc_backup.sh | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ed479d..3f1a4a8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # lcx_backup -Backupscript for LXC Container \ No newline at end of file +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/` diff --git a/lxc_backup.sh b/lxc_backup.sh index cd2f2f7..7aab385 100644 --- a/lxc_backup.sh +++ b/lxc_backup.sh @@ -8,3 +8,5 @@ do lxc delete ${container}-backup done +#own data for backupuser +chown -R rick-monitoring:rick-monitoring /home/rick-monitoring/backup