From 29d1fbb38cfa4587a98ea26e08e77931fb6fef49 Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Mon, 30 Sep 2024 20:11:50 -0400 Subject: [PATCH] restricted snarf_user and how we snarf links we don't want recursive links being dereferenced, which made last version barf on .local/.../steam due to recursive links in there. also, stopped backing up .local for the time being anyhow, since it's where steam lives and backing that up means backing up crazy amounts of gigabytes of game apps. --- nucleus/library/tests_crypto/makefile.crypto_breaker | 12 ++++++++++++ scripts/archival/shared_snarfer.pl | 4 ++-- scripts/archival/snarf_user.pl | 8 ++++++-- 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 nucleus/library/tests_crypto/makefile.crypto_breaker diff --git a/nucleus/library/tests_crypto/makefile.crypto_breaker b/nucleus/library/tests_crypto/makefile.crypto_breaker new file mode 100644 index 00000000..d7d3f49e --- /dev/null +++ b/nucleus/library/tests_crypto/makefile.crypto_breaker @@ -0,0 +1,12 @@ +include cpp/variables.def + +PROJECT = tests_crypto +TYPE = test +TARGETS = test_blowfish_crypto.exe test_rsa_crypto.exe +LOCAL_LIBS_USED = unit_test crypto application processes loggers configuration textual timely \ + filesystem structures basis +USE_SSL = t +RUN_TARGETS = $(ACTUAL_TARGETS) + +include cpp/rules.def + diff --git a/scripts/archival/shared_snarfer.pl b/scripts/archival/shared_snarfer.pl index 7b2b7ecd..cfbe2ae0 100644 --- a/scripts/archival/shared_snarfer.pl +++ b/scripts/archival/shared_snarfer.pl @@ -189,8 +189,8 @@ sub snarfer { } local($outcome) = 0xff & system $tar_tool, -#hmmm: trying to dereference symbolic links and stop missing stuff. -"-h", +#hmmm: trying to tame symbolic links; just recording them as links. + "--keep-directory-symlink", "-rf", &canonicalize($target_file), @excludes, "--files-from=" . &canonicalize($temp_file); if ($outcome) { diff --git a/scripts/archival/snarf_user.pl b/scripts/archival/snarf_user.pl index 202fba00..87f44892 100644 --- a/scripts/archival/snarf_user.pl +++ b/scripts/archival/snarf_user.pl @@ -39,8 +39,12 @@ local($snarf_file) = &snarf_name($snarf_file_base, $number); # backup all the config info for kde. &backup_hierarchy($snarf_file_base, $number, "$root", ".kde"); -# and get the config for gnome. -&backup_hierarchy($snarf_file_base, $number, "$root", ".local"); + +#hmmm: these get too much stuff, including all the steam binaries. +#hmmm: make it more specific. +#ARGH # and get the config for gnome. +#ARGH &backup_hierarchy($snarf_file_base, $number, "$root", ".local"); + &backup_hierarchy($snarf_file_base, $number, "$root", ".gnome*"); # and assorted config things for various apps. &backup_hierarchy($snarf_file_base, $number, "$root", ".config/syncthing"); -- 2.34.1