6 Citadel Database Cleanup
7 ---------------------------
9 This script exports, deletes, and re-imports your database. If you have
10 any data corruption issues, this program may be able to clean them up for you.
12 Please note that this program does a Berkeley DB dump/load, not a Citadel
13 export. The export files are not generated by the Citadel export module.
15 MAKE A BACKUP OF YOUR DATA BEFORE ATTEMPTING THIS. There is no guarantee
20 echo -n "Do you want to continue? "
24 "y" | "Y" | "yes" | "YES" | "Yes" )
26 echo DO NOT INTERRUPT THIS PROCESS.
33 for x in 00 01 02 03 04 05 06 07 08
36 echo Dumping $filename
37 db_dump -h ./data $filename >/tmp/CitaDump.$x
38 rm -f ./data/$filename
41 echo Removing log files
44 for x in 00 01 02 03 04 05 06 07 08
47 echo Loading $filename
48 db_load -h ./data $filename </tmp/CitaDump.$x
49 rm -f /tmp/CitaDump.$x
53 echo Dump/load operation complete. Start your Citadel server now.