From 85f44c99269124007a6b016c8af5358ca8b504e3 Mon Sep 17 00:00:00 2001 From: B Stack Date: Sun, 21 May 2017 10:35:04 -0400 Subject: initial commit for rbup --- etc/rbup/rbup.conf | 24 ++++++++++++++++++++++++ etc/rbup/rbup.conf.2017-05-21.01 | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 etc/rbup/rbup.conf create mode 100644 etc/rbup/rbup.conf.2017-05-21.01 (limited to 'etc') diff --git a/etc/rbup/rbup.conf b/etc/rbup/rbup.conf new file mode 100644 index 0000000..34d3615 --- /dev/null +++ b/etc/rbup/rbup.conf @@ -0,0 +1,24 @@ +# File: /etc/rbup/rbup.conf +# Hierarchy of precedence, and the last defined option being used. +# conffile (default is /etc/rbup/rbup.conf) +# command line environment +# flags given to rbup.sh +RBUP_NOW="$( date "+%Y-%m-%dT%H%M%S" )" +RBUP_SYNC_CMD=/bin/rsync +RBUP_SYNC_OPTS="-rlptgODwhatever" +RBUP_SYNC_OPT_VERBOSE="-v" +RBUP_SYNC_OPT_APPLY="-n" +RBUP_DEST_MOUNT_CMD="mount -v jonathan:/volume1/sword /mnt/jonathan/" +RBUP_DEST_UMOUNT_CMD="umount -l /mnt/jonathan/" +RBUP_DEST=/mnt/jonathan +RBUP_LOG_DIR=/var/log/rbup + +RBUP_VERBOSE=yes # can be overridden by the -v/-q flag or by the job options + +# JOB SPECIFIC VALUES +RBUP_JOB_NAME="mainbackup" +RBUP_SOURCE=/var/storage1/shares +RBUP_CHECKSUM_COUNT=1 +RBUP_CHECKSUM_1_FILE="/var/storage1/shares/public/Age Of Empires/Installing-AoFE-on-Linux 2016-01-29.odt" +RBUP_CHECKSUM_1_SHA256SUM=407ad21ce6b6ddb9a7f6a907134155431306a6b0450fedc3981d65311ff91c06 +RBUP_LOG_FILE=${RBUP_LOG_DIR}/${RBUP_JOB_NAME}.${RBUP_NOW}.log diff --git a/etc/rbup/rbup.conf.2017-05-21.01 b/etc/rbup/rbup.conf.2017-05-21.01 new file mode 100644 index 0000000..810d43b --- /dev/null +++ b/etc/rbup/rbup.conf.2017-05-21.01 @@ -0,0 +1,38 @@ +# File: /etc/rbup/rbup.conf +# Hierarchy of precedence, and the last defined option being used. +# /etc/rbup/rbup.conf [rbup:default] +# /etc/rbup/rbup.conf [rbup:job] +# file from flag -c /etc/other-file.conf +# command line environment +# other flags +[rbup:default] +RBUP_SYNC_CMD=/bin/rsync +RBUP_SYNC_OPTS="-rlptgODwhatever" +RBUP_SYNC_OPT_VERBOSE="-v" +RBUP_SYNC_OPT_APPLY="-n" +RBUP_DEST_MOUNT_CMD="mount -v jonathan:/volume1/sword /mnt/jonathan/" +RBUP_DEST_UMOUNT_CMD="umount -l /mnt/jonathan/" +RBUP_DEST=/mnt/jonathan +RBUP_LOG_DIR=/var/log/rbup/ +RBUP_LOG_FILE=${RBUP_LOG_DIR}/${RBUP_JOB_NAME}.${NOW}.log + +RBUP_VERBOSE=yes # can be overridden by the -v/-q flag or by the job options + +[rbup:main] +RBUP_JOB_NAME="mainbackup" +RBUP_JOB_DESCRIPTION="Any extra notes can go here." +RBUP_SOURCE=/var/storage1/shares +#RBUP_JOB_DEST=${RBUP_DEST_DEFAULT}/backups/shares # in case you want to override it +RBUP_CHECKSUM_COUNT=1 +RBUP_CHECKSUM_1_FILE="/var/storage1/shares/public/Age Of Empires/Installing-AoFE-on-Linux 2016-01-29.odt" +RBUP_CHECKSUM_1_SHA256SUM=407ad21ce6b6ddb9a7f6a907134155431306a6b0450fedc3981d65311ff91c06 + +[rbup:test] +RBUP_JOB_NAME="testjob5" +RBUP_JOB_DESCRIPTION="test job" +RBUP_SOURCE=/var/storage1/shares/public +#RBUP_JOB_DEST=${RBUP_DEST_DEFAULT}/backups/shares # in case you want to override it +RBUP_CHECKSUM_COUNT=1 +RBUP_CHECKSUM_1_FILE="/var/storage1/shares/public/Age Of Empires/Installing-AoFE-on-Linux 2016-01-29.odt" +RBUP_CHECKSUM_1_SHA256SUM=407ad21ce6b6ddb9a7f6a907134155431306a6b0450fedc3981d65311ff91c06 +RBUP_DEST=/mnt/foo -- cgit