doc: backup documentation
This commit is contained in:
10
README.md
10
README.md
@@ -19,7 +19,14 @@ _Currently hosted on an ubuntu lxc container with docker and portainer [+ inform
|
|||||||
|
|
||||||
## Backup & Restore
|
## Backup & Restore
|
||||||
|
|
||||||
Using [duplicati](https://git.limbosolutions.com/kb/duplicati) to daily backups of files and databases.
|
Using [duplicati](https://git.limbosolutions.com/kb/duplicati) to daily backups of files and databases.
|
||||||
|
|
||||||
|
- Backup Name: git
|
||||||
|
- Destination Server: backupsrv01.dev.lan
|
||||||
|
- Destination Path: /git.limbosolutions.com/duplicati/git
|
||||||
|
- Source Data : /git (check [Docker Compose File](docker-compose.yaml) for folder structure on /git)
|
||||||
|
- Schedule: every day at 1 am
|
||||||
|
- run-script-before-required:/duplicati-mysqlclient/scripts/backupdb.sh
|
||||||
|
|
||||||
### Restore Database
|
### Restore Database
|
||||||
|
|
||||||
@@ -31,4 +38,3 @@ DB_FILE= "file name to import"
|
|||||||
mysql --host db -uroot -p ${MYSQL_DATABASE} < /db-dumps/$DB_FILE
|
mysql --host db -uroot -p ${MYSQL_DATABASE} < /db-dumps/$DB_FILE
|
||||||
#root password (root password is the enviromnent variable ${MYSQL_ROOT_PASSWORD})
|
#root password (root password is the enviromnent variable ${MYSQL_ROOT_PASSWORD})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user