Working cron again, d'oh
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2021-11-11 02:10:17 +02:00
parent d3e9001597
commit f6d1da8899
4 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -9,7 +9,6 @@ services:
secrets:
- source: ssh_key
mode: 0400
entrypoint: [ "/usr/bin/backup.sh" ]
secrets:
ssh_key:

View File

@ -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" ]

View File

@ -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