-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbackup-alitesco-s3.bash
executable file
·29 lines (24 loc) · 1.02 KB
/
backup-alitesco-s3.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
#
# An example of a file calling 'backup-s3.bash'.
# This would define the required settings for one
# partition.
# The first 6 values are mandatory. The remaining ones
# have reasonable defaults if they are unset or null.
#
# Author: Markus Koskinen - License: BSD
#
# Mandatory configurations
export BUCKET="s3-backup" # S3 bucket name
export VOLGROUP="vg_kvm01_ssd" # LVM group name (check with 'lvdisplay')
export VOLNAME="alitesco" # LVM volume name
export PASSFILE="/root/backup-scripts/alitesco.pwd" # File with GPG passphrase
export SNAPSIZE="3G" # LVM snapshot size, "-L" format
export SNAPSHOT_RETENTION_COUNT=7 # Amount of snapshots to keep. 0 is infinite.
# Optional configurations
#export SNAPSHOT_ROTATION_SUFFIX="/*.dd.gz.gpg" # Only remove files with this suffix. Set "" to rotate all.
#export REMOTEDIR="${VOLNAME}" # A directory within the bucket
#export SNAPNAME="snap_${VOLNAME}" # Unique snapshot name
#export AWSCLI="/bin/aws"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
"${DIR}"/backup-s3.bash