From 8cf25de458c54842697032b973622a94ecdf2846 Mon Sep 17 00:00:00 2001 From: nobody Date: Tue, 6 Aug 2024 22:19:03 +0200 Subject: [PATCH] util: preserve more data --- util/{clear_nonpwd.sh => clear_nonessential.sh} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename util/{clear_nonpwd.sh => clear_nonessential.sh} (70%) diff --git a/util/clear_nonpwd.sh b/util/clear_nonessential.sh similarity index 70% rename from util/clear_nonpwd.sh rename to util/clear_nonessential.sh index 31fa080..0364929 100755 --- a/util/clear_nonpwd.sh +++ b/util/clear_nonessential.sh @@ -1,2 +1,2 @@ #!/bin/sh -find . -iname '*.sqlite' -exec sqlite3 '{}' "DELETE FROM kv_store WHERE key NOT LIKE '%-password' AND key NOT LIKE '%-secret' AND key != 'email-to';" ';' +find . -iname '*.sqlite' -exec sqlite3 '{}' "DELETE FROM kv_store WHERE key NOT LIKE '%-password' AND key NOT LIKE '%-secret' AND key NOT LIKE 'hedgedoc-%-id' AND key != 'email-to';" ';'