Files
git.limbosolutions.com/README.md

1.8 KiB

git.limbosolutions.com

Welcome to public repository of my Git Server

Using gitea and duplicati for backups.

Check for more information about admistration.

Requirements

Setup

Docker Compose File

Backup & Restore

Using 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 for folder structure on /git)
  • Schedule: every day at 1 am
  • run-script-before-required:/duplicati-mysqlclient/scripts/backupdb.sh

Global Settings


--send-mail-any-operation=true
--send-mail-body=%RESULT%
--send-mail-level=all
--send-mail-subject=Duplicati %OPERATIONNAME% report for wiki.limbosolutions.com -> %backup-name%
--send-mail-to=$BACKUP_EMAILNOTIFICATON_TO
--send-http-result-output-format=Duplicati
--send-mail-url=$BACKUP_EMAILNOTIFICATON_SERVER
--send-mail-password=$BACKUP_EMAILNOTIFICATON_PASSWORD
--send-mail-username=$BACKUP_EMAILNOTIFICATON_USERNAME

Restore Database

#select a file to import
ls /db-dumps
#select a file to import
DB_FILE= "file name to import"
mysql --host db -uroot -p ${MYSQL_DATABASE} < /db-dumps/$DB_FILE
#root password (root password is the enviromnent variable ${MYSQL_ROOT_PASSWORD})