From: Chris Koeritz Date: Sun, 20 Oct 2024 20:04:04 +0000 (-0400) Subject: updated to simplify my drive updaters X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=a5ac204b070cbeb179749a544617c200891aedc5;p=feisty_meow.git updated to simplify my drive updaters now the aliases are all created based on a list of names, rather than being individually maintained. only downside is that some drives will need renaming to their shorter form to conform with the script. --- diff --git a/scripts/customize/fred/fred_common.alias b/scripts/customize/fred/fred_common.alias index 255cf447..99bf2d15 100644 --- a/scripts/customize/fred/fred_common.alias +++ b/scripts/customize/fred/fred_common.alias @@ -2,42 +2,55 @@ # some aliases that i don't expect very many people to ever want. # these are very specific to drives and such that i use but which other people wouldn't. +#hmmm: if this loop works, we'll have to fix the drive names to match the commands, since we aren't doing a parallel array of actual drive names. + +for drivename in \ + barkuptree \ + bittybarky \ + buffalonious \ + catfurnose \ + craftsman \ + cryptex \ + flabtastic \ + fredmusicprime \ + slimpickenz \ + soapbox \ + swirler \ +; do + define_yeti_alias update_${drivename}="source \"$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh\"; update_archive_drive \"/media/$USER/$drivename\"" +done + # updates the mounted barkuptree drive with stuff on wildmutt. -define_yeti_alias update_barkuptree='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/barkuptreedrive"' +#define_yeti_alias update_barkuptree='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/barkuptreedrive"' # updates buffalonious when mounted. -define_yeti_alias update_buffalonious='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/z/buffalonious"' - +#define_yeti_alias update_buffalonious='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/z/buffalonious"' # updates local archive drive called catfurnose. -define_yeti_alias update_catfurnose='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/catfurnose"' - +#define_yeti_alias update_catfurnose='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/catfurnose"' # updates the fredmusicprime drive with the latest from /z space. -define_yeti_alias update_fredmusicprime='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/fredmusicprime"' - +#define_yeti_alias update_fredmusicprime='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/fredmusicprime"' # updates my little 1 TB "soapbox" style usb drive with any appropriate archives and source. -define_yeti_alias update_soapbox='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/soapboxdrive"' - +#define_yeti_alias update_soapbox='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/soapboxdrive"' # does the updating thing on the new tiny flat drive that for a while was serving the ps4 shuttle service but now is an honest ext4 drive. -define_yeti_alias update_slimpickenz='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/slimpickenz"' - +#define_yeti_alias update_slimpickenz='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/slimpickenz"' # another drive to update; this is a salvaged 5 tb drive. -define_yeti_alias update_flabtastic='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/flabtastic"' - +#define_yeti_alias update_flabtastic='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/flabtastic"' # updates the bittybarky drive with the prime assortment. -define_yeti_alias update_bittybarky='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/bittybarky"' - +#define_yeti_alias update_bittybarky='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/bittybarky"' # synch up the new fairly large seagate drive named swirler. -define_yeti_alias update_swirler='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/swirler"' - +#define_yeti_alias update_swirler='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/swirler"' # updates local archive drive called craftsman. -define_yeti_alias update_craftsman='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/craftsman"' +#define_yeti_alias update_craftsman='source "$FEISTY_MEOW_SCRIPTS/archival/general_updater.sh"; update_archive_drive "/media/fred/craftsman"' + +#### +#ANCIENTS ZONE... to archive or delete or something... # moo and unmoo mount the local folders i use most. #no longer used. we are doing mostly full directory stores without nfs mounts these days. #define_yeti_alias moo='check_mount /z/stuffing ; check_mount /z/walrus ; check_mount /z/chunky ; check_mount /z/fredgrid' #define_yeti_alias unmoo='sudo umount /z/stuffing ; sudo umount /z/walrus ; sudo umount /z/chunky ; sudo umount /z/fredgrid' - # load in the gffs build scripts. # not currently used. this probably was adding a bit of startup time. #source "$FEISTY_MEOW_SCRIPTS/buildor/gffs_builders.sh" - +#END OF ANCIENTS ZONE +####