985 B
985 B
restore
- Setup
- Portainer - Stop all containers except duplicati
Restore Storage
Duplicati web UI - Import backup job note: disable schedules
database engine is the same
Restore everything from backup to original folders
database engine not the same
Restore everything except db_data folders (db_dumps must be include in restore)
Restore Database
- confirm if DB container is running
- enter on duplicati container bash
execute:
#check last files db-dumps
ls /git/db-dumps
#pick file to import (maybe the last one :))
import file
DB_FILE=filenametoimport
# by default duplicati container dont have de enviroment varible ${DB_ROOT_PASSWORD}
DB_ROOT_PASSWORD=youdbrootpasswordmysql -uroot -p'${DB_ROOT_PASSWORD}' ${DB_NAME} < /git/db-dumps/$DB_FILE
- start git aplication and check everyting is ok
- Execute backup on duplicati
- Check backup is restorable
- Re Enable schedule backups on duplication