Deploy generic rattail-backup script for backup apps

This commit is contained in:
Lance Edgar 2019-09-11 18:36:43 -05:00
parent 9adc5a5b79
commit 63b86593f1
2 changed files with 32 additions and 0 deletions

View file

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