Deploy generic rattail-backup
script for backup apps
This commit is contained in:
parent
9adc5a5b79
commit
63b86593f1
2 changed files with 32 additions and 0 deletions
13
rattail_fabric2/deploy/backup/rattail-backup.mako
Executable file
13
rattail_fabric2/deploy/backup/rattail-backup.mako
Executable 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 $*
|
Loading…
Add table
Add a link
Reference in a new issue