X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcustomize%2Ffred%2Fscripts%2Farchival%2Fcompare_soapbox.sh;fp=scripts%2Fcustomize%2Ffred%2Fscripts%2Farchival%2Fcompare_soapbox.sh;h=d48937379c22d088f43e50b8da31bf549d9870e8;hb=c589a3686d4508c9c5ea7841deb9be251460ddc3;hp=0000000000000000000000000000000000000000;hpb=4c595ba63a6c5203e104fe83fee43d69d3ff7aef;p=feisty_meow.git diff --git a/scripts/customize/fred/scripts/archival/compare_soapbox.sh b/scripts/customize/fred/scripts/archival/compare_soapbox.sh new file mode 100644 index 00000000..d4893737 --- /dev/null +++ b/scripts/customize/fred/scripts/archival/compare_soapbox.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# compares the soapbox with the real archive to see if any older stuff might be +# left behind. if it's got a less than in front, then it's only on the soapbox drive +# now rather than the pc's hard drive. + +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" + +function compare_archives_with_target() +{ + local target="$1"; shift + + for currdir in $MAJOR_ARCHIVE_SOURCES; do + sep + echo "comparing '$currdir' with target '$target', where 'less thans' are on the target..." + compare_dirs "$target/$(basename $currdir)" "$currdir" + done +} + +#hmmm: generalize this one also. + +compare_archives_with_target /media/fred/soapboxdrive + +sep +