X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Farchival%2Fsnarf_notes.pl;h=ba81fe083def063d5398b7f4087f56ed3d19cdaf;hb=1789d98b94ccc0052019f4f79233df29db2a3e35;hp=7517f1d0ca7cd806c896e6a2c3b91eda1587989e;hpb=ed7d548012a0c7262d52f058f313d79e48197f56;p=feisty_meow.git diff --git a/scripts/archival/snarf_notes.pl b/scripts/archival/snarf_notes.pl index 7517f1d0..ba81fe08 100644 --- a/scripts/archival/snarf_notes.pl +++ b/scripts/archival/snarf_notes.pl @@ -28,29 +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"); -# 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. +#unneeded it seems: &snarf_by_pattern($snarf_file_base, "$root", "notes", "cloud"); ############################################################################