From: Fred T. Hamster Date: Thu, 3 Apr 2025 15:05:07 +0000 (-0400) Subject: traced an issue with mirror mode X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=870f87fd91582eafceb456af5a35cb0b17e716e7;p=feisty_meow.git traced an issue with mirror mode we will only mirror, aka delete, when the hierarchy on the target is one that already exists on the source. this is a consequence of the necessary scooping of the "*" under a hierarchy to be copied to the target, rather than trying to copy at the same height for the directory trees (which will lead to a basement folder being created under the remote target basement, i.e. /media/fred/archivedrive/basement/basement, rather than copying direct contents. so for now, we are limited by our use of rsync for this, unless there's a mode to do a direct directory copy rather than its current behavior. --- diff --git a/scripts/archival/general_updater.sh b/scripts/archival/general_updater.sh index 85183bec..0635a984 100644 --- a/scripts/archival/general_updater.sh +++ b/scripts/archival/general_updater.sh @@ -53,6 +53,7 @@ function synch_directory_to_target() fi echo "synching from $from into $to" +#echo "cmd is: 'netcp $extra_flag "$from"/* "$to"/'" netcp $extra_flag "$from"/* "$to"/ if [ $? -ne 0 ]; then echo "The synchronization of $from into $to has failed."