Skip to content

Commit

Permalink
Changed options used by rsync comand in backUp script. This has cause…
Browse files Browse the repository at this point in the history
…d an issue with the log message that produces stdOut. I commented that out until I figure out what's going on with it.
  • Loading branch information
Un1XX388 committed Mar 19, 2023
1 parent 9c1f08a commit 51dd864
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/bash/functions/backUp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ declare backUpSourcePath=$DEFAULT_BACK_UP_SOURCE_PATH
# Tracks path backup will be created at.
declare backUpDestPath=$DEFAULT_BACK_UP_DEST_PATH
# TODO: Comment.
declare options="--delete-excluded -r --include='/.bash*' --exclude='/.*' --exclude='/GDrive'"
declare options="-rLtU --specials --safe-links --inplace --delete-excluded --include='/.bash*' --exclude='/.*' --exclude='/GDrive'"
log $traceLvl -m="Local variable(s) reset."

#####################
Expand Down Expand Up @@ -126,9 +126,10 @@ eval "$( (eval $cmd) \

if [[ $rtOut -ne 0 ]]; then
log $errLvl -m="$errOut"
else
# Figure out why this is failing.
#else
# TODO: Handle condidtion where rsync stdOut is empty (currently errors).
log $traceLvl -m="$stdOut"
# log $traceLvl -m="$stdOut"
fi

exit $rtOut
Expand Down

0 comments on commit 51dd864

Please sign in to comment.