X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Farchival%2Fsnarf_notes.pl;h=1f58543bfbf19a0330695cc91a1e420f2df20a0c;hb=b7fac99d77474c4f2fc12647bbd96b04595e8a66;hp=7517f1d0ca7cd806c896e6a2c3b91eda1587989e;hpb=3ea085ec301ed1399dfa1e9f3a240312dc95410b;p=feisty_meow.git diff --git a/scripts/archival/snarf_notes.pl b/scripts/archival/snarf_notes.pl index 7517f1d0..1f58543b 100644 --- a/scripts/archival/snarf_notes.pl +++ b/scripts/archival/snarf_notes.pl @@ -28,29 +28,31 @@ 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"); -# grab all the state out of basketnotes's home directory. -&backup_hierarchy($base, $number, "$root", ".kde/share/apps/basket"); +&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. +###ubuntu one retired because of complete unreliability. +#&snarf_by_pattern($snarf_file_base, "$root", "notes", "Ubuntu One"); ############################################################################