RECOVER=`ls /usr/bin/db*recover |sort |tail -n 1`
DUMP=`ls /usr/bin/db*dump |sort |tail -n 1`
LOAD=`ls /usr/bin/db*load |sort |tail -n 1`
+ else
+ RECOVER=`ls /usr/bin/db*recover`
+ DUMP=`ls /usr/bin/db*dump`
+ LOAD=`ls /usr/bin/db*load`
fi
else
echo "database_cleanup.sh cannot find the Berkeley DB utilities. Exiting." 1>&2
citserver must NOT be running while you do this.
WARNING #3:
- Please try "cd $DATA_DIR; $RECOVER -c" first. Use this tool
- only if that one fails to fix your problem.
+ Please try "cd $DATA_DIR; $RECOVER -c" first. Run citserver afterwards to
+ revalidate whether its fixed or not, No news might be good news. Use this
+ tool only if that one fails to fix your problem.
WARNING #4:
You must have an amount of free space on your disk that is at least twice
exit
esac
-for x in 00 01 02 03 04 05 06 07 08 09 0a
+for x in 00 01 02 03 04 05 06 07 08 09 0a 0b 0c
do
filename=cdb.$x
echo Dumping $filename
echo Removing old databases
rm -f ./data/*
-for x in 00 01 02 03 04 05 06 07 08 09 0a
+for x in 00 01 02 03 04 05 06 07 08 09 0a 0b 0c
do
filename=cdb.$x
echo Loading $filename