Remove keyserver log files before backup

This commit is contained in:
Bob Mottram 2017-07-30 14:27:15 +01:00
parent a03db43778
commit 9ce7e29174
1 changed files with 8 additions and 0 deletions

View File

@ -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