X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcustomize%2Ffred%2Fscripts%2Fdisk_synch%2Fupdate_fredmusicprime.sh;fp=scripts%2Fcustomize%2Ffred%2Fscripts%2Fdisk_synch%2Fupdate_fredmusicprime.sh;h=44597545ae75f959a08121de49641cd2d32e545c;hb=b4b11bb8121b10d0e645d1b12b7b22b38faa9c3b;hp=0000000000000000000000000000000000000000;hpb=4b55659ba1a25adb598f03b13b10965336186e83;p=feisty_meow.git diff --git a/scripts/customize/fred/scripts/disk_synch/update_fredmusicprime.sh b/scripts/customize/fred/scripts/disk_synch/update_fredmusicprime.sh new file mode 100644 index 00000000..44597545 --- /dev/null +++ b/scripts/customize/fred/scripts/disk_synch/update_fredmusicprime.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +# updates my little 1 TB "soapbox" style usb drive with items that it should contain. + +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" +source "$FEISTY_MEOW_SCRIPTS/archival/shared_updater_parts.sh" + +# where we're backing up to. +TARGET_FOLDER="/media/fred/fredmusicprime" + +sep + +echo Target drive currently has... +ls "$TARGET_FOLDER" +if [ $? -ne 0 ]; then + echo "The target location '$TARGET_FOLDER' is not mounted currently, so cannot be updated." + exit 1 +fi + +# synch all our targets. +for currdir in $ARCHIVE_COLLECTIONS_LIST; do + synch_directory_to_target "$currdir" "$TARGET_FOLDER/$(basename $currdir)"/ +done + +sep + +# update source code if present. +echo getting latest fred repositories... +pushd "$TARGET_FOLDER" +update_source_folders extra_brain + +sep + +echo Updated all expected portions of the targets successfully. +