Added TODO to README.md
This commit is contained in:
@@ -44,6 +44,8 @@ An optional exclude file can be provided as a third parameter. It should be comp
|
|||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
|
* Check source and destination file-system. If one of them is FAT, use the --modify-window rsync parameter (see `man rsync`) with a value of 1 or 2.
|
||||||
|
|
||||||
* Minor changes (see TODO comments in the source).
|
* Minor changes (see TODO comments in the source).
|
||||||
|
|
||||||
* Backup to remote drive?
|
* Backup to remote drive?
|
||||||
|
|||||||
+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.
|
# Converts YYYY-MM-DD-HHMMSS to YYYY-MM-DD HH:MM:SS and then to Unix Epoch.
|
||||||
case "$OSTYPE" in
|
case "$OSTYPE" in
|
||||||
linux*) date -d "${1:0:10} ${1:11:2}:${1:13:2}:${1:15:2}" +%s ;;
|
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" ;;
|
darwin*) date -j -f "%Y-%m-%d-%H%M%S" "$1" "+%s" ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@@ -46,7 +47,7 @@ fn_expire_backup() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
fn_log_info "Expiring $1"
|
fn_log_info "Expiring $1"
|
||||||
rm -rf -- "$1"
|
# rm -rf -- "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
@@ -239,6 +240,7 @@ while : ; do
|
|||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Check whether rsync reported any errors
|
# Check whether rsync reported any errors
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|
||||||
if [ -n "$(grep "rsync:" "$LOG_FILE")" ]; then
|
if [ -n "$(grep "rsync:" "$LOG_FILE")" ]; then
|
||||||
fn_log_warn "Rsync reported a warning, please check '$LOG_FILE' for more details."
|
fn_log_warn "Rsync reported a warning, please check '$LOG_FILE' for more details."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user