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=cd02a88881aaef89c8a5fa7ae4ca142baca5f6d7;hb=81a3f3b9ce06d5e9f179da2dcfdac07ec1fe0ac4;hp=0000000000000000000000000000000000000000;hpb=fbfb7321ab7a30cde5b99047854e18841d280f29;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..cd02a888 --- /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 $ARCHIVE_COLLECTION_LIST; 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 +