Working cron again, d'oh
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
d3e9001597
commit
f6d1da8899
|
@ -6,11 +6,13 @@ Automatically take backups from running Docker Swarm services into a volume.
|
||||||
|
|
||||||
## Background
|
## Background
|
||||||
|
|
||||||
There are lots of Docker volume backup systems; all of them have one or both of these problems:
|
There are lots of Docker volume backup systems; all of them have one or both of these limitations:
|
||||||
- You need to define all the volumes to back up in the configuration system
|
- You need to define all the volumes to back up in the configuration system
|
||||||
- Backups require services to be stopped to take consistent copies
|
- Backups require services to be stopped to take consistent copies
|
||||||
|
|
||||||
Backupbot II tries to solve these problems by **letting you define how to back up your services using Docker labels**, so you can **easily collect your backups for use with another system** like docker-volume-backup.
|
Backupbot II tries to help, by
|
||||||
|
1. **letting you define backups using Docker labels**, so you can **easily collect your backups for use with another system** like docker-volume-backup.
|
||||||
|
2. **running pre- and post-commands** before and after backups, for example to use database tools to take a backup from a running service.
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@ services:
|
||||||
secrets:
|
secrets:
|
||||||
- source: ssh_key
|
- source: ssh_key
|
||||||
mode: 0400
|
mode: 0400
|
||||||
entrypoint: [ "/usr/bin/backup.sh" ]
|
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
ssh_key:
|
ssh_key:
|
||||||
|
|
|
@ -12,3 +12,4 @@ services:
|
||||||
# Note(3wc): blank label to be picked up by `abra recipe sync`
|
# Note(3wc): blank label to be picked up by `abra recipe sync`
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: none
|
condition: none
|
||||||
|
entrypoint: [ "/usr/bin/backup.sh" ]
|
||||||
|
|
|
@ -5,7 +5,6 @@ set -o pipefail
|
||||||
|
|
||||||
cron_schedule="${CRON_SCHEDULE:?CRON_SCHEDULE not set}"
|
cron_schedule="${CRON_SCHEDULE:?CRON_SCHEDULE not set}"
|
||||||
|
|
||||||
echo "$cron_schedule /usr/bin/backup.sh" | crontab -
|
echo "$cron_schedule /usr/bin/backup.sh" > /etc/crontabs/root
|
||||||
crontab -l
|
|
||||||
|
|
||||||
crond -f -L /dev/stdout
|
crond -f -d8 -L /dev/stdout
|
||||||
|
|
Loading…
Reference in New Issue