Commit cee24695 authored by Robert Spencer's avatar Robert Spencer

Add missing variables to script and conf file

parent 2bc073d8
......@@ -4,12 +4,20 @@
# daily backup and /etc/backstep-traceback/weekly.conf for the weekly
# backup.
# Config
BWLIMIT=
DEBUG_MAX_LOAD=
MAX_LOAD=
REPORT_EMAIL=
ZABBIX_CONFIG=
# Server details
SERVER_HOST=
SERVER_PATH=backup
SERVER_PORT=
SERVER_KEY=/root/.ssh/backupserver_id_rsa
SERVER_USER=
# Logical volumes to backup
BACKUP_LVS=()
BACKUP_LVS+=("example.com")
BACKUP_LVS+=("lvm-raid/example.com")
......@@ -71,7 +71,7 @@ do
for ITEM in "${ITEMS[@]}"
do
case "$i" in
case "$ITEM" in
/*)
BIND_MOUNT_ARGS+=("--bind-mount")
BIND_MOUNT_ARGS+=("$ITEM:$ITEM")
......@@ -83,6 +83,9 @@ do
esac
done
lv=${LVM_SNAPSHOT_ARGS[1]#*/}
vg=${LVM_SNAPSHOT_ARGS[1]%/*}
if [ "${#LVM_SNAPSHOT_ARGS[@]}" -gt "2" ]
then
ZABBIX_ITEM="$PERIOD"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment