sks-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sks-devel] db logfile question


From: Jeffrey Johnson
Subject: Re: [Sks-devel] db logfile question
Date: Fri, 12 Feb 2016 17:08:30 -0500


On Feb 12, 2016, at 5:02 PM, Mire, John <address@hidden> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Greetings!

After completing a successful keydump, is there a sks flag or -option to truncate the db logfiles (log.00000NNNN) older than the keydump? 791 logfiles are starting to bloat the DB directory.


Run db_archive -d.

Here is the sequence (I call it fixit.sh) to clean up (and repair) sks databases.

Edit to taste.

hah

73 de Jeff

============================================== fixit.sh
#!/bin/sh

top="`pwd`"

cd /srv/sks

echo "KDB --"
cd KDB
sudo db61_recover -ev
sudo db61_checkpoint -1
sudo db61_archive -dv
sudo db61_recover -ev
cd ..

echo "PTree --"
cd PTree
sudo db61_recover -ev
sudo db61_checkpoint -1
sudo db61_archive -dv
sudo db61_recover -ev
cd ..

chown -R sks:sks .

cd "$top"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]