Deploy generic rattail-backup script for backup apps

This commit is contained in:
Lance Edgar 2019-09-11 18:36:17 -05:00
parent 5df0e0d16f
commit f860b2185b
2 changed files with 31 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 $*