Add logic for deploying simple backup app

This commit is contained in:
Lance Edgar 2018-07-05 12:40:36 -05:00
parent 86429d4f06
commit 2a6b25215f
4 changed files with 121 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#!/bin/sh -e
if [ "$1" = "-v" -o "$1" = "--verbose" ]; then
VERBOSE='--verbose'
PROGRESS='--progress'
CONFIG='app/rattail.conf'
else
VERBOSE=
PROGRESS=
CONFIG='app/silent.conf'
fi
cd /srv/envs/${envname}
RATTAIL="bin/rattail --config=$CONFIG $PROGRESS"
$RATTAIL backup

View file

@ -0,0 +1,4 @@
# -*- mode: conf; -*-
# backup everything of importance at ${pretty_time}
${'' if env.server_is_live else '# '}${cron_time} * * * root /usr/local/bin/backup-everything