enabled btrfs snapshot creation...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2025-03-14 06:07:39 +03:00
parent 69bc6ccc2b
commit f312eee12f

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