# How to test database update

**URL:** <https://community.openpbs.org/t/how-to-test-database-update/1705>\
**Category:** Users/Site Administrators\
**Created:** [July 17, 2019, 6:59pm UTC](https://community.openpbs.org/t/how-to-test-database-update/1705 "2019-07-17T18:59:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [July 17, 2019, 9:03pm UTC](https://community.openpbs.org/t/how-to-test-database-update/1705/2 "2019-07-17T21:03:36Z")

</div>

If you are not interested in preserving the job-id sequence and accounting logs , but only the configuration , then you can follow the below steps:

**On the PBS Pro 13.x :**

1. qmgr -c “print server” \> print\_server.txt
2. qmgr -c “print node @default” \> print\_node.txt
3. qmgr -c “print sched @default” \> print\_sched.txt
4. $PBS\_HOME/server\_priv/resourcedef # backup this file
5. $PBS\_HOME/sched\_priv/sched\_config # backup this file
6. $PBS\_HOME/server\_priv/hooks #backup this file
7. Take a backup of /etc/pbs.conf

**Deploy PBS Pro 19.x on the test cluster**

Make sure the PBS Server is up and running , so that you can import the configuration of PBS Pro 13.x as below into 19.x

a. qmgr \< print\_server.txt  
b. qmgr \< print\_node.txt ( make sure the /etc/hosts file has all the hostname of the compute nodes)  
c. qmgr \< print\_sched.txt  
d. copy the $PBS\_HOME/sched\_priv/sched\_config to the same location ( back-up the original)  
e. adjust the attributes /etc/pbs.conf to suite the new cluster  
d. restart the pbs services

Another way:

1. Take a pgdump of the PBS Pro 13.x
2. Install PBS Pro 19.x on the test cluster
3. import the dump in the postgres

Hope this helps

---

_[View the full topic](https://community.openpbs.org/t/how-to-test-database-update/1705)._
