This commit is contained in:
2022-12-10 02:36:30 +01:00
parent b55882ecde
commit f032025956
3 changed files with 33 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ LOGDIR="$HOME/Documents/_SYSADMIN/$YYYY-$MM/$YYYYMMDD"
if [[ ! -d "$LOGDIR" ]]; then
mkdir -p "$LOGDIR"
fi
#exec > >(tee -a $LOGDIR/$YYYYMMDD.$(date -u +%s).tocloud-backup.log) 2>&1
exec > >(tee -a $LOGDIR/$YYYYMMDD.$(date -u +%s).tocloud-backup.log) 2>&1
function on_exit {
rm -rf "$TD"
@@ -120,10 +120,10 @@ function do_backup {
rclone sync \
--retries 99999 \
--progress \
--progress-terminal-title \
--stats-unit bits \
--stats-one-line -v \
"$TD/$BACKUPNAME" \
fsn1-storagebox-10T:"$BACKUPNAME"/
fsn1-storagebox-10T:"$BACKUPNAME"/ 2>&1
# belt and suspenders
echo "### Verifying uploaded data checksums..."
rsync -acP "$TD/$BACKUPNAME/" fsn1-storagebox-10T:"$BACKUPNAME"/