How to reconstruct a database (excluding the job database) in torque

1. First, print out the old data with this command:

> qmgr -c “p s”
# Create queues and set their attributes.
# Create and define queue batch
# create queue batch
set queue batch queue_type = Execution
set queue batch acl_host_enable = False
set queue batch resources_max.nodect = 6
set queue batch resources_default.nodes = 1
set queue batch resources_default.walltime = 01:00:00
set queue batch resources_available.nodect = 18
set queue batch enabled = True
set queue batch started = True
# Set server attributes.
set server scheduling = True
set server managers =
set server managers += scott@*
set server managers += wightman@*
set server operators =
set server operators += scott@*
set server operators += wightman@*
set server default_queue = batch
set server log_events = 511
set server mail_from = adm
set server resources_available.nodect = 80
set server node_ping_rate = 300
set server node_check_rate = 600
set server tcp_timeout = 6
2.Copy this information somewhere.
3.Restart pbs_server with the following command:
> pbs_server -t create
4.When you are prompted to overwrite the previous database, enter y, then
enter the data exported by the qmgr command as in this example:
> cat data | qmgr
5.Restart pbs_server without the flags:
> qterm   (shutdown the pbs_server)
> pbs_server (start the pbs_server)
This will reinitialize the database to the current version.