Denbun POP version Manual
User's Manual | Administrator's Manual | Installation Guide | Initial Settings Guide
Back to Menu
 

Backup and Restore

Backup and Restore Data
About Denbun system
Denbun saves data in a database (PostgreSQL) and files (message file and index file).
And the cgi programs use OS file system for temporary files.




Backup and restore data
Make sure no access to the Denbun during backup and restore.
If you use Automatic Receive, terminate the batch for Automatic Receive.

The following data in the three spaces should be backup in Denbun system.
[1] PostgreSQL Database "dnpwmldb"
To backup data, you can use pg_dump command or other standard way provided by PostgreSQL.
To restore the data, you can use pg_restore command or other standard way provided by PostgreSQL.
Please refer the PostgreSQL documentation.

[Example of Backup for PostgreSQL Database]
pg_dump -b -Fc -U postgres dnpwmldb > dnpwmldb.pgdmp

[Example of Restore for PostgreSQL Database]
dropdb -U postgres dnpwmldb
pg_restore -C -Fc -U postgres -d template1 ./dnpwmldb.pgdmp

However if you use other backup tool, please follow the way provided by the tool.
[2] Message and index files for each user
Backup data in "dnpwml/dnpwmldata/1/user".
* In V3.1 or higher, e-mail data is stored in this space, and large data will be stored.
Please consider to use a command such as "robocopy (Windows) or "rsync (Linux)"" in order to make backup time short. (Please refer to the OS documentation for details)
However if you use other backup tool, please follow the way provided by the tool.

Delete "user" in the destination before copying backup data "user" when restoring backup data.
* If you overwrite "user" directory, the data may be corrupted.
[3] Image data which administrators registered as users information
Backup data in "dnpwml/dnpwmlfile".

Delete "dnpwmlfile" in the destination before copying backup data "dnpwmlfile" when restoring backup data.
* If you overwrite "dnpwmlfile" directory, the data may be corrupted.


 
Copyright (C) NEOJAPAN Inc. All Rights Reserved.