Node:Managing the WebPublish database, Next:, Up:Two modes of operation



Managing the WebPublish database

When you execute WebPublish for the first time, WebPublish will create a hidden directory in your home directory. The hidden directory is named $HOME/.webpublish. WebPublish uses this hidden directory to store several database files.

There are four commands that are used to maintain the information in the WebPublish database. The four commands are:

--add
Add a new record to a database file.
--change
Change an existing record in a database file.
--remove
Remove an existing record from a database file.
--list
List one or all of the records in a database file.

There are five database files that the database commands can operate on. The five database files are:

account
The account records are stored in this file.
shell
The file alteration program records are stored in this file.
synch
The synchronize path records are stored in this file.
publish
The publish path records are stored in this file.
mode
The file transfer mode records are stored in this file.

The -file (-F) command line option is used to specify the database file that a given database command will operate on. For example, the following command string will add a new record to the account database file.

webpublish --add -F account (additional information)