Commit cee24695 authored by Robert Spencer's avatar Robert Spencer

Add missing variables to script and conf file

parent 2bc073d8
...@@ -4,12 +4,20 @@ ...@@ -4,12 +4,20 @@
# daily backup and /etc/backstep-traceback/weekly.conf for the weekly # daily backup and /etc/backstep-traceback/weekly.conf for the weekly
# backup. # backup.
# Config
BWLIMIT=
DEBUG_MAX_LOAD=
MAX_LOAD=
REPORT_EMAIL=
ZABBIX_CONFIG=
# Server details # Server details
SERVER_HOST= SERVER_HOST=
SERVER_PATH=backup
SERVER_PORT= SERVER_PORT=
SERVER_KEY=/root/.ssh/backupserver_id_rsa SERVER_KEY=/root/.ssh/backupserver_id_rsa
SERVER_USER= SERVER_USER=
# Logical volumes to backup # Logical volumes to backup
BACKUP_LVS=() BACKUP_LVS=()
BACKUP_LVS+=("example.com") BACKUP_LVS+=("lvm-raid/example.com")
...@@ -71,7 +71,7 @@ do ...@@ -71,7 +71,7 @@ do
for ITEM in "${ITEMS[@]}" for ITEM in "${ITEMS[@]}"
do do
case "$i" in case "$ITEM" in
/*) /*)
BIND_MOUNT_ARGS+=("--bind-mount") BIND_MOUNT_ARGS+=("--bind-mount")
BIND_MOUNT_ARGS+=("$ITEM:$ITEM") BIND_MOUNT_ARGS+=("$ITEM:$ITEM")
...@@ -83,6 +83,9 @@ do ...@@ -83,6 +83,9 @@ do
esac esac
done done
lv=${LVM_SNAPSHOT_ARGS[1]#*/}
vg=${LVM_SNAPSHOT_ARGS[1]%/*}
if [ "${#LVM_SNAPSHOT_ARGS[@]}" -gt "2" ] if [ "${#LVM_SNAPSHOT_ARGS[@]}" -gt "2" ]
then then
ZABBIX_ITEM="$PERIOD" 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