Fix copy paths and use backup directory function

This commit is contained in:
erik 2023-10-19 10:16:43 +02:00
parent 4628d1409c
commit b2b7fae1aa
2 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ function main() {
file_env RESTIC_MONTHS_TO_KEEP 12
backup-db-dump
backup-fs-from-directory "/media"
backup-directory "/media"
}
source /usr/local/lib/functions.sh

View file

@ -14,10 +14,10 @@ function main() {
# Restore latest snapshot into /var/backups/restore
restore-directory '/var/backups/restore'
cp -r /var/backups/restore /media
cp -r /var/backups/restore/* /media
# adjust file permissions for the taiga user
chown -R taiga:taiga /media
chown -R 999:999 /media
# Restore db
drop-create-db