From e28367db0d9f154e0f21cbd656a2bebfb7b38056 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 2 Feb 2025 14:52:15 +0300 Subject: [PATCH] ... Signed-off-by: Alex A. Naanou --- Archive/media/img/my/work/sync-flash.sh | 9 ++++++++- Archive/snapshot.sh | 5 +++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Archive/media/img/my/work/sync-flash.sh b/Archive/media/img/my/work/sync-flash.sh index 1beada21..ce5ab313 100755 --- a/Archive/media/img/my/work/sync-flash.sh +++ b/Archive/media/img/my/work/sync-flash.sh @@ -21,12 +21,14 @@ COPYFLAGS=$RSYNCFLAGS # XXX need to test if this exists... VERIFY=jdupes VERIFYFLAGS="-r -u -I" -DO_VERIFY=1 +DO_VERIFY= COMPRESS=./compress-archive.sh DO_COMPRESS=1 +SNAPSHOT=../../../../snapshot.sh + # Config file to contain all the default settings... # XXX not sure if this is a good idea... @@ -352,6 +354,11 @@ if [[ $DO_COMPRESS ]] ; then echo "Compressing archive: done." fi +##if ! [ -z "$SNAPSHOT" ] \ +## && [ -e "$SNAPSHOT" ] ; then +## "$SNAPSHOT" +##fi + # XXX add report... # XXX diff --git a/Archive/snapshot.sh b/Archive/snapshot.sh index 1aabc678..b1f84395 100755 --- a/Archive/snapshot.sh +++ b/Archive/snapshot.sh @@ -18,6 +18,11 @@ if ! btrfs filesystem usage . > /dev/null ; then exit fi +createTree(){ + mkdir -p ./media/img/my/work/ + # XXX copy scritps... +} + #SNAPSHOT_COUNT=