Added TODO to README.md
This commit is contained in:
+3
-1
@@ -29,6 +29,7 @@ fn_parse_date() {
|
||||
# Converts YYYY-MM-DD-HHMMSS to YYYY-MM-DD HH:MM:SS and then to Unix Epoch.
|
||||
case "$OSTYPE" in
|
||||
linux*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;;
|
||||
cygwin*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;;
|
||||
darwin*) date -j -f "%Y-%m-%d-%H%M%S" "$1" "+%s" ;;
|
||||
esac
|
||||
}
|
||||
@@ -46,7 +47,7 @@ fn_expire_backup() {
|
||||
fi
|
||||
|
||||
fn_log_info "Expiring $1"
|
||||
rm -rf -- "$1"
|
||||
# rm -rf -- "$1"
|
||||
}
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
@@ -239,6 +240,7 @@ while : ; do
|
||||
# -----------------------------------------------------------------------------
|
||||
# Check whether rsync reported any errors
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
if [ -n "$(grep "rsync:" "$LOG_FILE")" ]; then
|
||||
fn_log_warn "Rsync reported a warning, please check '$LOG_FILE' for more details."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user