1.8 KiB
1.8 KiB
Setup
Install
Requirements
- Docker Currently hosted on an ubuntu lxc container with docker and portainer + information.
Services (Stacks)
If portainer installed use portainer (default https//host:9000) to setup/manage services
Gitea
- Stack Name: gitea Docker Compose
Restore
Requirements
- Host setup with docker and portainer ./setup.md
- Check Every Container is ok and running
- Stop Every Container except duplicati (including portainer, if restoring portainer is a requirement) note: restore portainer not tested
- Enter Duplicati
- Import Backup job (if not possible next steps must be adapted)
- All Imported jobs schedules must be disabled (or disable write permissions on backup host)
- Restore all files to original location
- If database engine is diferent do not restore db_data and check restore database before next steps
- Start Containers and check if everything is ok
Database
Only required of database data files not recovarable (example: diferent database engine from backup)
- Start Portainer container (if stopped in restore process)
- Start Database container (if stopped in restore process)
- Enter duplicati bash (by using portainer)
- Execute Command
```bash
#check last files db-dumps
ls /git/db-dumps
#pick file to import (maybe the last one :))
```
import file
```bash
DB_FILE=filenametoimport
# by default duplicati container dont have de enviroment varible ${DB_ROOT_PASSWORD}
DB_ROOT_PASSWORD=youdbrootpassword
mysql -uroot -p'${DB_ROOT_PASSWORD}' ${DB_NAME} < /git/db-dumps/$DB_FILE
```
- start all stop containers and check everyting is ok
- Execute backup on duplicati
- Check backup is restorable
- Re Enable schedule backups on duplication