#!/bin/bash
-# a script that handles synchronization of important assets from the ARCHIVE_COLLECTION_LIST
-# and the SOURCE_HIERARCHY_LIST onto a backup drive of some sort. it will only copy folders
+# a script that handles synchronization of important assets from the MAJOR_ARCHIVE_SOURCES
+# and the SOURCECODE_HIERARCHY_LIST onto a backup drive of some sort. it will only copy folders
# if there is a target folder of the appropriate name already on the backup medium.
source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
}
# the uber controller method that does the "hard" work of updating.
-# any items from the ARCHIVE_COLLECTION_LIST that are on the target will be
+# any items from the MAJOR_ARCHIVE_SOURCES that are on the target will be
# updated. any items found on the target matching the members of the
-# SOURCE_COLLECTION_LIST will be treated as code hierarchies and updated.
+# SOURCECODE_HIERARCHY_LIST will be treated as code hierarchies and updated.
function update_archive_drive()
{
local target_folder="$1"; shift # where we're backing up to.
fi
# synch all our targets.
- for currdir in $ARCHIVE_COLLECTION_LIST; do
+ for currdir in $MAJOR_ARCHIVE_SOURCES; do
synch_directory_to_target "$currdir" "$target_folder/$(basename $currdir)"/
done
# update source code if present.
echo getting latest fred repositories...
pushd "$target_folder"
- for currdir in $SOURCE_HIERARCHY_LIST; do
+ for currdir in $SOURCECODE_HIERARCHY_LIST; do
update_source_folders $currdir
done
local($root) = &canonicalize("$FEISTY_MEOW_APEX");
# grab the top level stuff.
-&backup_files($snarf_file_base, $number, $root, ".", ("*.txt", "make*", ".gitignore"));
+&backup_files($snarf_file_base, $number, $root, ".", ("*.txt", "make*", ".gitignore", "*.yml"));
# snarf up all the important directories.
# CAK: current as of 2012-05-05.
# makes root user's home directory's permissions right.
define_yeti_alias reroot='chown -R root:root /root'
# yes, these are really helpful...
-define_yeti_alias whoareyou='echo -e "Hello, I am a computer named $(hostname)\nand I'\''m very pleased to meet you."'
+define_yeti_alias whoareyou='echo -e "Hello, I am a computer named $(hostname)\nand I am very pleased to meet you."'
define_yeti_alias whereami='echo whoa dude, try not to think about it...'
define_yeti_alias why='echo We all wonder what the point of the universe is at times. If you figure it all out, please write us.'
# the shell scripts twice for users like root that don't always load this
# stuff.
unalias fredme &>/dev/null
+unalias feistyme &>/dev/null
##############
REPOSITORY_LIST+="$(find "$HOME/apps" -maxdepth 2 -mindepth 2 -iname "avenger5" -type d) "
fi
- # the archive collections list is a set of directories that are major
- # repositories of data which can be synched to backup drives.
- define_yeti_variable ARCHIVE_COLLECTION_LIST=
+ # the archive list is a set of directories that are major repositories of
+ # data which can be synched to backup drives.
+ define_yeti_variable MAJOR_ARCHIVE_SOURCES=
# the source collections list is a set of directories that indicate they
# harbor a lot of source code underneath.
- define_yeti_variable SOURCE_HIERARCHY_LIST=
+ define_yeti_variable SOURCECODE_HIERARCHY_LIST=
# initializes the feisty meow build variables, if possible.
function initialize_build_variables()
REPOSITORY_LIST+=" cloud ebooks web "
# adds our locally relevant archive folders into the list to be synched.
- ARCHIVE_COLLECTION_LIST+="/z/archons /z/basement /z/imaginations /z/musix /z/toaster /z/walrus"
+ MAJOR_ARCHIVE_SOURCES+="/z/archons /z/basement /z/imaginations /z/musix /z/toaster /z/walrus"
# our set of known source hierarchy folder names.
- SOURCE_HIERARCHY_LIST="codebarn extra_brain interbrane"
+ SOURCECODE_HIERARCHY_LIST="codebarn extra_brain interbrane"
# point to our local certificate for ssh usage.
export SVN_SSH="ssh -i $HOME/.ssh/id_dsa_sourceforge"
{
local target="$1"; shift
- for currdir in $ARCHIVE_COLLECTION_LIST; do
+ 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"
fi
# synch all our targets.
-for currdir in $ARCHIVE_COLLECTION_LIST; do
+for currdir in $MAJOR_ARCHIVE_SOURCES; do
synch_directory_to_target "$currdir" "$TARGET_FOLDER/$(basename $currdir)"/
done
# update source code if present.
echo getting latest fred repositories...
pushd "$TARGET_FOLDER"
-update_source_folders $SOURCE_HIERARCHY_LIST
+update_source_folders $SOURCECODE_HIERARCHY_LIST
sep
fi
# synch all our targets.
-for currdir in $ARCHIVE_COLLECTION_LIST; do
+for currdir in $MAJOR_ARCHIVE_SOURCES; do
synch_directory_to_target "$currdir" "$TARGET_FOLDER/$(basename $currdir)"/
done
# update source code if present.
echo getting latest fred repositories...
pushd "$TARGET_FOLDER"
-for currdir in $SOURCE_HIERARCHY_LIST; do
+for currdir in $SOURCECODE_HIERARCHY_LIST; do
update_source_folders "$curr_dir"
done
sep