Update 'documentation/restore.md'
This commit is contained in:
@@ -1,28 +1,41 @@
|
||||
# restore
|
||||
1) Setup
|
||||
2) stop all containers except duplicati
|
||||
1) [Setup](./setup.md)
|
||||
2) Portainer - Stop all containers except duplicati
|
||||
|
||||
### restore storate
|
||||
1) Duplicati web UI import backup job
|
||||
### Restore Storage
|
||||
|
||||
Duplicati web UI - Import backup job
|
||||
note: disable schedules
|
||||
|
||||
### database engine is the same
|
||||
2) restore everything to original folders
|
||||
|
||||
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
|
||||
Restore everything except db_data folders (db_dumps must be include in restore\)
|
||||
|
||||
#### Restore Database
|
||||
1) confirm if DB container is running
|
||||
2) enter on duplicati container bash
|
||||
|
||||
execute:
|
||||
```bash
|
||||
#check last files db-dumps
|
||||
ls /git/db-dumps
|
||||
#pick file to import (maybe the last one :))
|
||||
```
|
||||
import file
|
||||
|
||||
```bash
|
||||
mysql -uroot -p'${DB_ROOT_PASSWORD}' ${DB_NAME} < /git/db-dumps/filelename.sql
|
||||
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
|
||||
|
||||
```
|
||||
3) start git aplication and check everyting is ok
|
||||
|
||||
4) Execute backup on duplicati
|
||||
5) Check backup is restorable
|
||||
6) Re Enable schedule backups on duplication
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user