restor should cleanup files upfront
This commit is contained in:
parent
31c139079f
commit
fce672be0b
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@ function main() {
|
|||
file_env RESTIC_PASSWORD_FILE
|
||||
|
||||
# files
|
||||
rm -rf /var/backups/*
|
||||
restic -r $RESTIC_REPOSITORY/files restore latest --target /var/backups/
|
||||
|
||||
# db
|
||||
|
@ -25,6 +26,6 @@ function main() {
|
|||
|
||||
}
|
||||
|
||||
source /usr/local/lib/funtions.sh
|
||||
source /usr/local/lib/functions.sh
|
||||
main
|
||||
|
||||
|
|
Loading…
Reference in a new issue