X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Farchival%2Fsnarf_notes.pl;h=ba81fe083def063d5398b7f4087f56ed3d19cdaf;hb=abad259144d11f1a8a752f14ae8a79968a073c89;hp=8c9947978a8ea3aec33cea3c6372b0ce521226d8;hpb=8fdc3ea7934f6714e76c14adbb245cb320b4a5d6;p=feisty_meow.git diff --git a/scripts/archival/snarf_notes.pl b/scripts/archival/snarf_notes.pl index 8c994797..ba81fe08 100644 --- a/scripts/archival/snarf_notes.pl +++ b/scripts/archival/snarf_notes.pl @@ -28,27 +28,30 @@ local($number) = &retrieve_number("aa_backup"); # variables for directory location to backup and the file to dump it in. local($root) = "$HOME"; -local($base) = &snarf_prefix("notes"); -local($snarf_file) = &snarf_name($base, $number); +local($snarf_file_base) = &snarf_prefix("notes"); +local($snarf_file) = &snarf_name($snarf_file_base, $number); # store the archive number in the file for retrieval on the other side. -&backup_number("aa_backup", $base, $number); +&backup_number("aa_backup", $snarf_file_base, $number); ############################################################################ # get top level text files and other potentially important items... -&backup_files($base, $number, $root, ".", ("*.html", "*.txt")); +&backup_files($snarf_file_base, $number, $root, ".", ("*.html", "*.txt")); # backup all the hierarchies in our quartz directory. -&backup_hierarchy($base, $number, "$root", "quartz"); +&backup_hierarchy($snarf_file_base, $number, "$root", "quartz"); # gather any directories in our home that match these often recurring patterns. -&snarf_by_pattern("$root", "notes"); -&snarf_by_pattern("$root", "project"); -&snarf_by_pattern("$root", "issue"); -&snarf_by_pattern("$root", "idea"); -&snarf_by_pattern("$root", "crucial"); -&snarf_by_pattern("$root", "list"); -&snarf_by_pattern("$root", "task"); +&snarf_by_pattern($snarf_file_base, "$root", "notes"); +&snarf_by_pattern($snarf_file_base, "$root", "project"); +&snarf_by_pattern($snarf_file_base, "$root", "issue"); +&snarf_by_pattern($snarf_file_base, "$root", "idea"); +&snarf_by_pattern($snarf_file_base, "$root", "crucial"); +&snarf_by_pattern($snarf_file_base, "$root", "list"); +&snarf_by_pattern($snarf_file_base, "$root", "task"); + +# backup additional folders we care about. +#unneeded it seems: &snarf_by_pattern($snarf_file_base, "$root", "notes", "cloud"); ############################################################################