3 # a script that handles synchronization of important assets from the ARCHIVE_COLLECTION_LIST
4 # and the SOURCE_HIERARCHY_LIST onto a backup drive of some sort. it will only copy folders
5 # if there is a target folder of the appropriate name already on the backup medium.
7 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
8 source "$FEISTY_MEOW_SCRIPTS/archival/shared_updater_parts.sh"
10 function update_archive_drive()
12 local target_folder="$1"; shift
13 # where we're backing up to.
17 echo Target drive currently has...
20 echo "The target location '$target_folder' is not mounted currently, so cannot be updated."
24 # synch all our targets.
25 for currdir in $ARCHIVE_COLLECTION_LIST; do
26 synch_directory_to_target "$currdir" "$target_folder/$(basename $currdir)"/
31 # update source code if present.
32 echo getting latest fred repositories...
33 pushd "$target_folder"
34 update_source_folders $SOURCE_HIERARCHY_LIST
36 #extra_brain interbrane
41 echo Updated all expected portions of the targets successfully.