Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
awit-backstep-traceback
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
awit-backstep-traceback
awit-backstep-traceback
Commits
cee24695
Commit
cee24695
authored
Mar 03, 2017
by
Robert Spencer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing variables to script and conf file
parent
2bc073d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
example/backstep-traceback-auto.conf
example/backstep-traceback-auto.conf
+9
-1
scripts/backstep-traceback-auto
scripts/backstep-traceback-auto
+4
-1
No files found.
example/backstep-traceback-auto.conf
View file @
cee24695
...
@@ -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"
)
scripts/backstep-traceback-auto
View file @
cee24695
...
@@ -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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment