This commit is contained in:
2022-10-09 18:11:35 +01:00
parent 7088008535
commit 5edf0b7cb2

View File

@@ -14,7 +14,7 @@ _Currently hosted on an ubuntu lxc container with docker and portainer [+ inform
### Services (Stacks) ### Services (Stacks)
If portainer installed use portainer (http://githost:9000) to setup/manage services If portainer installed use portainer (https://githost:9443) to setup/manage services
Required environment variables (.env): Required environment variables (.env):
@@ -45,7 +45,7 @@ DUPLICATI_PORT=8200
Requirements: Requirements:
- [Duplicati Image with mySql client](https://git.limbosolutions.com/kb/duplicati/docker/sqlclient/README.md) - [Duplicati Image with mySql client](https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/mysqlclient/README.md)
_[Docker Compose File](../docker/dupliticati-docker-compose.yaml)_ _[Docker Compose File](../docker/dupliticati-docker-compose.yaml)_
@@ -67,15 +67,13 @@ After starting stack:
1) Check every Container is ok and running 1) Check every Container is ok and running
1) Stop every Container except duplicati and portainer 1) Stop every Container except duplicati and portainer
_note: restore of portainer/duplicati not tested_ _note: restore of portainer/duplicati not tested_
1) Enter Duplicati (http://githost:8200) 1) Enter Duplicati (http://hostip:8200)
1) Import Backup job (if not possible next steps must be adapted) 1) Import Backup job (if not possible next steps must be adapted)
- Restore with permissions checked - Restore with permissions checked
- All Imported jobs schedules must be disabled (or disable write permissions on backup host) - All Imported jobs schedules must be disabled (or disable write permissions on backup host)
- (step not required after this migration) Remove references to scripts (example:run-script-before-required, /data/myScripts/backupdb.sh)
1) Recreate duplicati local database (home-> backup-> advanced-> database-> Recreate (delete and repair)) 1) Recreate duplicati local database (home-> backup-> advanced-> database-> Recreate (delete and repair))
1) Restore all files to original location 1) Restore all files (except portainer and duplicati data) to original location
- If database engine is diferent do not restore db_data and check restore database **before next steps** - If database engine is diferent do not restore db_data and check restore database **before next steps**with this processs because duplicati is running!
- From duplicati only restore custom scripts (duplicati-data/myScripts), dot not restore full duplicati with this processs because duplicati is running!
1) Recreate stack gitea _[Docker Compose](../docker/docker-compose.yaml)_ with original read only restrictions on duplicati volumes 1) Recreate stack gitea _[Docker Compose](../docker/docker-compose.yaml)_ with original read only restrictions on duplicati volumes
1) Confirm everything is ok and running 1) Confirm everything is ok and running
1) Return to duplicati on schedule job add script to run-script-before-required /data/myScripts/backupdb.sh 1) Return to duplicati on schedule job add script to run-script-before-required /data/myScripts/backupdb.sh
@@ -101,3 +99,6 @@ mysql --host db -uroot -p ${MYSQL_DATABASE} < /db-dumps/$DB_FILE
#enter root password (root password is in enviromnent variable ${MYSQL_ROOT_PASSWORD}) #enter root password (root password is in enviromnent variable ${MYSQL_ROOT_PASSWORD})
``` ```