Fix copy paths and use backup directory function
This commit is contained in:
parent
4628d1409c
commit
b2b7fae1aa
2 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ function main() {
|
||||||
file_env RESTIC_MONTHS_TO_KEEP 12
|
file_env RESTIC_MONTHS_TO_KEEP 12
|
||||||
|
|
||||||
backup-db-dump
|
backup-db-dump
|
||||||
backup-fs-from-directory "/media"
|
backup-directory "/media"
|
||||||
}
|
}
|
||||||
|
|
||||||
source /usr/local/lib/functions.sh
|
source /usr/local/lib/functions.sh
|
||||||
|
|
|
@ -14,10 +14,10 @@ function main() {
|
||||||
# Restore latest snapshot into /var/backups/restore
|
# Restore latest snapshot into /var/backups/restore
|
||||||
restore-directory '/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
|
# adjust file permissions for the taiga user
|
||||||
chown -R taiga:taiga /media
|
chown -R 999:999 /media
|
||||||
|
|
||||||
# Restore db
|
# Restore db
|
||||||
drop-create-db
|
drop-create-db
|
||||||
|
|
Loading…
Reference in a new issue