doc: backup documentation

This commit is contained in:
2023-03-11 13:40:15 +00:00
parent bb2f1f219f
commit 0a0a94c64d

View File

@@ -21,6 +21,13 @@ _Currently hosted on an ubuntu lxc container with docker and portainer [+ inform
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
```bash ```bash
@@ -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})
``` ```