5.4

Table Of Contents
Console Server Commands
480
n
Any queues that have a write group assigned will not be purged when dbpurge runs as a
non-superuser.
The system automatically purges the directories and queues ea
ch hour to move old material from
high-turnover queues (such as the Wires queues) into the Dead queue. Normally locked and held
stories are not purged regardless of their age. Use this command only in an emergency when you
need to regain some space. Stories can receive a date in the future if your system date is
inaccurate. If you have future-dated stories because the system date was inaccurately set, remove
them using the
-f
option or wait until the date expires. You must be a console superuser to run
dbpurge
on write-protected queues. For instance, to purge all stories in the Wires queues older
than five hours, type:
dbpurge wires 5
Typing dbpurge - purges all queues in the database according to each queue’s purge interval.
dbpurge -v does the same, and prints a message on the console for each queue purged.
You can also use dbpurge to remove held and locked stories from the database. To remove all
locked stories from all queues in the People directory, type:
dbpurge people -l
To remove all held stories from a queue, use
dbpurge
, but substitute
-h
for
-l
.
n
The
dbpurge
command can be run only on the master computer.
dbrestore
dbrestore <key> [option] ...
The dbrestore command restores data dumped via dbdump to the iNEWS database. Automatic
data conversions are performed to convert data from older database revisions to the current
database format.
If your database is damaged, you can restore it from your backup file by typing:
dbrestore div
-v Condition used as <path> parameter. Purge all queues listed in the command in
verbose mode
-h Include held entries (must be superuser to use this option) in the purge
-l Include locked entries (must be superuser to use this option) in the purge
-f Include future dated entries (must be superuser to use this option) in the purge
Interval is expressed in <hours> or <days>.<hours>
Valid Keys Description