Minor fixes.

dev
Franco Masotti 3 years ago
parent 15d5b8614c
commit 10b243b69a
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 4
      _posts/2019-02-23-my-backup-system.md

@ -163,8 +163,8 @@ ret_rsync=${?}
# Flush data.
sync
FINISH=$(date +%s)
if [ ${ret_rsync} -eq 0 ]; then
FINISH=$(date +%s)
if [ "${LOG_TO_FILE}" = 'true' ]; then
printf "%s\n" "[$(date '+%Y-%m-%d, %T') OK backup_ext_disks] "${DST}" ; \
$((${FINISH}-${START}))s" >> "${LOG_FILE}"
@ -175,7 +175,7 @@ $((${FINISH}-${START}))s" >> "${LOG_FILE}"
fi
else
if [ "${LOG_TO_FILE}" = 'true' ]; then
printf "%s\n" "[$(date '+%Y-%m-%d, %T') FAILED backup_ext_disks\
printf "%s\n" "[$(date '+%Y-%m-%d, %T') FAILED backup_ext_disks \
ret_rsync=${ret_rsync}] "${DST}"" \
>> /var/log/rsync.log
fi

Loading…
Cancel
Save