kopia lustrzana https://github.com/Ovski4/docker-borgbackup-cron
Update README.md
rodzic
bfac85eb03
commit
b0fe97f793
28
README.md
28
README.md
|
@ -3,19 +3,23 @@ Borg backup cron
|
||||||
|
|
||||||
A docker image to backup periodically a folder using borg.
|
A docker image to backup periodically a folder using borg.
|
||||||
Additionnally this image can:
|
Additionnally this image can:
|
||||||
- dump a mysql database in the same folder beforehand
|
* dump a mysql database in the same folder beforehand
|
||||||
- dump a mongo database
|
* dump a mongo database
|
||||||
- create an elasticsearch snapshot
|
* create an elasticsearch snapshot
|
||||||
- send an email on failure
|
* end an email on failure
|
||||||
|
|
||||||
You can also run the cron job directly by overriding the command with `/var/backup_script.sh`
|
You can also run the cron job directly by overriding the command with `/var/backup_script.sh`
|
||||||
|
|
||||||
- [Borg backup cron](#borg-backup-cron)
|
Table of contents
|
||||||
- [Build](#build)
|
-----------------
|
||||||
- [Usage](#usage)
|
|
||||||
- [With mysql dump](#with-mysql-dump)
|
- [Build](#build)
|
||||||
- [With mongo dump](#with-mongo-dump)
|
- [Usage](#usage)
|
||||||
- [With elasticsearch snapshot](#with-elasticsearch-snapshot)
|
- [With mysql dump](#with-mysql-dump)
|
||||||
- [Sending an email on failure](#sending-an-email-on-failure)
|
- [With mongo dump](#with-mongo-dump)
|
||||||
|
- [With elasticsearch snapshot](#with-elasticsearch-snapshot)
|
||||||
|
- [Sending an email on failure](#sending-an-email-on-failure)
|
||||||
|
- [Use secrets instead of env variables](#use-secrets-instead-of-env-variables)
|
||||||
|
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
@ -97,6 +101,8 @@ docker run \
|
||||||
ovski/borgbackup-cron
|
ovski/borgbackup-cron
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Use secrets instead of env variables
|
||||||
|
|
||||||
You can also use secrets in a stack to store sensitive information.
|
You can also use secrets in a stack to store sensitive information.
|
||||||
Instead of specifiying environment variables, create the following secrets in /var/secrets (default location):
|
Instead of specifiying environment variables, create the following secrets in /var/secrets (default location):
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue