diff --git a/rsn.helper.conf b/rsn.helper.conf new file mode 100644 index 0000000..40199b8 --- /dev/null +++ b/rsn.helper.conf @@ -0,0 +1,11 @@ +MAIL_HEAD(){ +} + +MAIL_FOOT(){ +} + +ADD_MAIL_TITLE(){ +} + +ADD_MAIL_ROW(){ +} \ No newline at end of file diff --git a/rsnbackup.conf b/rsnbackup.conf new file mode 100644 index 0000000..f285205 --- /dev/null +++ b/rsnbackup.conf @@ -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" \ No newline at end of file diff --git a/rsnbackup.sh b/rsnbackup.sh index 3fd3ba4..d025cf0 100644 --- a/rsnbackup.sh +++ b/rsnbackup.sh @@ -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/*