50 lines
1.2 KiB
Markdown
50 lines
1.2 KiB
Markdown
# git.limbosolutions.com
|
|
|
|
Welcome to public repository of my [Git Server](https://git.limbosolutions.com)
|
|
|
|
Using [gitea](https://git.limbosolutions.com/kb/gitea) and [duplicati](https://git.limbosolutions.com/kb/duplicati) for backups.
|
|
|
|
|
|
## Requirements
|
|
|
|
- Docker
|
|
- Docker Compose
|
|
- Portainer (optional)
|
|
- [Duplicati Image with mySql client](https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/mysqlclient/README.md)
|
|
|
|
|
|
## Setup
|
|
|
|
[Docker Compose File](docker-compose.yaml)
|
|
|
|
## Backup and Restore
|
|
|
|
Using [custom duplicati image](https://git.limbosolutions.com/kb/duplicati) to daily backups files and databases. Every action (backup/restore) creates an log entry on docker.
|
|
|
|
Docker Log.
|
|
|
|
--run-script-after=dockerlog
|
|
|
|
### Duplicati - git job Options
|
|
|
|
Create db dump.
|
|
|
|
run-script-before-required:duplicati-mysql-backup
|
|
|
|
### Restore Database
|
|
|
|
```bash
|
|
#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})
|
|
```
|
|
|
|
## Maintenance
|
|
|
|
* latest update - 2024-02-18
|
|
|
|
|