Working cron again, d'oh
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
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
|
||||
|
||||
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
|
||||
- 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
|
||||
|
||||
|
@ -9,7 +9,6 @@ services:
|
||||
secrets:
|
||||
- source: ssh_key
|
||||
mode: 0400
|
||||
entrypoint: [ "/usr/bin/backup.sh" ]
|
||||
|
||||
secrets:
|
||||
ssh_key:
|
||||
|
@ -12,3 +12,4 @@ services:
|
||||
# Note(3wc): blank label to be picked up by `abra recipe sync`
|
||||
restart_policy:
|
||||
condition: none
|
||||
entrypoint: [ "/usr/bin/backup.sh" ]
|
||||
|
@ -5,7 +5,6 @@ set -o pipefail
|
||||
|
||||
cron_schedule="${CRON_SCHEDULE:?CRON_SCHEDULE not set}"
|
||||
|
||||
echo "$cron_schedule /usr/bin/backup.sh" | crontab -
|
||||
crontab -l
|
||||
echo "$cron_schedule /usr/bin/backup.sh" > /etc/crontabs/root
|
||||
|
||||
crond -f -L /dev/stdout
|
||||
crond -f -d8 -L /dev/stdout
|
||||
|
Loading…
x
Reference in New Issue
Block a user