Upload helper scripts
This commit is contained in:
11
rsn.helper.conf
Normal file
11
rsn.helper.conf
Normal file
@ -0,0 +1,11 @@
|
||||
MAIL_HEAD(){
|
||||
}
|
||||
|
||||
MAIL_FOOT(){
|
||||
}
|
||||
|
||||
ADD_MAIL_TITLE(){
|
||||
}
|
||||
|
||||
ADD_MAIL_ROW(){
|
||||
}
|
19
rsnbackup.conf
Normal file
19
rsnbackup.conf
Normal 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"
|
@ -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/*
|
||||
|
Reference in New Issue
Block a user