diff --git a/backup.sh b/backup.sh index 7db4c0b..8c87cda 100755 --- a/backup.sh +++ b/backup.sh @@ -146,7 +146,7 @@ function sync_files() { log "SOURCE : ${SRC}" log "DESTINATION : ${DST}" log "DELETE : ${DELETE:-"No (default)"}" - log "------------ RSYNC STARTED ---------" + log "------------- RSYNC STARTED ---------" cd $SRC_PATH if [ "$DELETE" == "yes" ]; then @@ -171,8 +171,8 @@ function sync_files() { "${SRC}" "${DST}" | sed '/sending\ incremental\ file\ list/d' | tee -a $LOG fi - cd - - log "------------ RSYNC ENDED -----------" + cd - > /dev/null + log "------------- RSYNC ENDED -----------" return 0 }