Compare commits

...

2 Commits

Author SHA1 Message Date
f312eee12f enabled btrfs snapshot creation...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2025-03-14 06:07:39 +03:00
69bc6ccc2b now compression reports progress...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2025-03-13 01:09:59 +03:00
2 changed files with 19 additions and 6 deletions

View File

@ -91,9 +91,20 @@ fi
# do the work...
find "$BASE_PATH" -name \*.${EXT} -exec ${ARCH} \; \
&& echo done.
#find "$BASE_PATH" -name \*.${EXT} -exec ${ARCH} \; \
# && echo done.
IFS=$'\n'
ARWs=($(find "$BASE_PATH" -name \*.${EXT}))
COUNT=${#ARWs[@]}
DONE=1
for f in "${ARWs[@]}" ; do
echo $f
printf 'Doing: %d/%d\r' $DONE $COUNT
eval "${ARCH/\{\}/\"$f\"}" > /dev/null
DONE=$((DONE + 1))
done
echo done.
# vim:set nowrap nospell :

View File

@ -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