From f312eee12f0214c8a3949ff0e1899c58f123e04c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 14 Mar 2025 06:07:39 +0300 Subject: [PATCH] enabled btrfs snapshot creation... Signed-off-by: Alex A. Naanou --- Archive/media/img/my/work/sync-flash.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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