From 9ce7e291741903e6b80faea13aa8c556eab204a5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 30 Jul 2017 14:27:15 +0100 Subject: [PATCH] Remove keyserver log files before backup --- src/freedombone-app-keyserver | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freedombone-app-keyserver b/src/freedombone-app-keyserver index 2e888df4..96f0743c 100755 --- a/src/freedombone-app-keyserver +++ b/src/freedombone-app-keyserver @@ -125,6 +125,10 @@ function upgrade_keyserver { } function backup_local_keyserver { + # remove any unused log files + cd /var/lib/sks/DB + db_archive -d + source_directory=/etc/sks if [ -d $source_directory ]; then systemctl stop sks @@ -189,6 +193,10 @@ function restore_local_keyserver { } function backup_remote_keyserver { + # remove any unused log files + cd /var/lib/sks/DB + db_archive -d + source_directory=/etc/sks if [ -d $source_directory ]; then systemctl stop sks