From 870f87fd91582eafceb456af5a35cb0b17e716e7 Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Thu, 3 Apr 2025 11:05:07 -0400 Subject: [PATCH] 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. --- scripts/archival/general_updater.sh | 1 + 1 file changed, 1 insertion(+) 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." -- 2.34.1