Upload helper scripts

This commit is contained in:
2016-11-11 12:50:12 +01:00
parent eb9229acd1
commit 1ea60ec365
3 changed files with 30 additions and 7 deletions

11
rsn.helper.conf Normal file
View File

@ -0,0 +1,11 @@
MAIL_HEAD(){
}
MAIL_FOOT(){
}
ADD_MAIL_TITLE(){
}
ADD_MAIL_ROW(){
}

19
rsnbackup.conf Normal file
View File

@ -0,0 +1,19 @@
# Soll geprueft werden ob ein bestimmter Prozentsatz an Speicher und
# Inodes noch frei ist?
HD_SPACE_CHECK=true
# Minimaler freier Speicherplatz für Sicherung in % auf dem
# Sicherungslaufwerk
HD_SPACE_MIN_FREE=40
# Backup Basis Verzeichnis
BACKUP_BASE=/backup
# Mail Host
MAIL_HOST="mail.server"
# Mail Sender Addresse
MAIL_FROM="from@address"
# Mail Empfaenger Addresse
MAIL_TO="to@address"

View File

@ -10,16 +10,11 @@
#
ADD_NEW_HOST(){
#
# create new backup directory
#
echo "1. Create new backup dir: $1"
mkdir -p $1
mkdir -p $1/.sync
#
# create new rsnapshot config
#
echo "2. Create new rsnapshot-common.conf at $1/"
echo -e "
@ -40,9 +35,7 @@ exclude_file\t$1/exclude_file.txt
backup\troot@$2:/\t./" >> $1/rsnapshot.conf
#
# create the "exclude" file for this host.
#
echo "- /sys/*
- /proc/*
- /tmp/*