diff --git a/Archive/media/img/my/work/sync-flash.sh b/Archive/media/img/my/work/sync-flash.sh index ce5ab313..0ce6f5f9 100755 --- a/Archive/media/img/my/work/sync-flash.sh +++ b/Archive/media/img/my/work/sync-flash.sh @@ -288,6 +288,8 @@ while true ; do while true ; do echo "Copying files from ${BASE}${DRIVE} (~`du -hs "${BASE}${DRIVE}" | cut -f 1`)..." + echo "# $COPY $COPYFLAGS ${BASE}${DRIVE}/* "$DIR"" + echo "# 2> >(tee "${DIR}"/copy-err.log)" $COPY $COPYFLAGS ${BASE}${DRIVE}/* "$DIR" \ 2> >(tee "${DIR}"/copy-err.log) # no errors -> remove log... @@ -354,10 +356,10 @@ if [[ $DO_COMPRESS ]] ; then echo "Compressing archive: done." fi -##if ! [ -z "$SNAPSHOT" ] \ -## && [ -e "$SNAPSHOT" ] ; then -## "$SNAPSHOT" -##fi +if ! [ -z "$SNAPSHOT" ] \ + && [ -e "$SNAPSHOT" ] ; then + eval "$SNAPSHOT" +fi # XXX add report... # XXX