19 lines
298 B
Plaintext
19 lines
298 B
Plaintext
|
#!/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
|