aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2017-05-21 16:40:48 -0400
committerB Stack <bgstack15@gmail.com>2017-05-21 16:40:48 -0400
commit5e4afe1837792e1d9dab959c8bc0eb03fe15a832 (patch)
tree3c9c208c19915b159f0221d52e23fc28ae6b60c7
parentrelease candidate for rbup.sh (diff)
downloadrbup-5e4afe1837792e1d9dab959c8bc0eb03fe15a832.tar.gz
rbup-5e4afe1837792e1d9dab959c8bc0eb03fe15a832.tar.bz2
rbup-5e4afe1837792e1d9dab959c8bc0eb03fe15a832.zip
ready for testing
-rwxr-xr-xusr/share/rbup/rbup.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/share/rbup/rbup.sh b/usr/share/rbup/rbup.sh
index aed4876..b0ad329 100755
--- a/usr/share/rbup/rbup.sh
+++ b/usr/share/rbup/rbup.sh
@@ -7,7 +7,7 @@
# Purpose: Allows customizable jobs from an easy config file
# Package: rbup
# History:
-# 2016
+# 2016 Basic form for sync_smash.sh designed
# Usage:
# Reference: ftemplate.sh 2017-04-17a; framework.sh 2017-04-17a
# /mnt/bgirton/Backups/bup_data.sh which itself was modified from darmok:/usr/local/bin/sync_smash.sh
@@ -103,7 +103,7 @@ test -z "${frameworkscript}" && echo "$0: framework not found. Aborted." 1>&2 &&
. ${frameworkscript} || echo "$0: framework did not run properly. Continuing..." 1>&2
infile1=
outfile1=
-default_conffile=/home/bgirton-local/rpmbuild/SOURCES/rbup-0.0-1/etc/rbup/rbup.conf
+default_conffile=/etc/rbup/rbup.conf
conffile="${default_conffile}"
logfile=${scriptdir}/${scripttrim}.${today}.out # not used here. See RBUP_LOG_FILE
interestedparties="bgstack15@gmail.com"
@@ -253,7 +253,10 @@ fi
fistruthy "${RBUP_VERBOSE}" && verbosestate="${RBUP_SYNC_OPT_VERBOSE}"
fullcommand="$( echo "${RBUP_SYNC_CMD} ${RBUP_SYNC_OPTS} ${applystate} ${verbosestate} ${RBUP_SOURCE} ${RBUP_DEST}" | sed -r -e 's/[[:space:]]+/ /g;' )"
+
+ # Run sync
debuglev 1 && ferror "${fullcommand}"
+ ${fullcommand}
# Unmount destination
if test -n "${RBUP_DEST_UMOUNT_CMD}";
bgstack15