Configuration Settings backup in ServiceNow Instance

tt_bong
Kilo Explorer

Hi all,

 

I need help regarding the configuration settings backup in ServiceNow Instance.

 

I am currently working on ServiceNow demo instance and I have actually performed some configurations on it. The demo instance will be expire soon and I do not plan to extend the demo instance as well.

 

Is there anyway for me to backup the configuration settings so that I will be able to restore the configuration setting to another new instance anytime in future?

 

Thanks.

7 REPLIES 7

You can also do something similar,


All your configurations would be saved under default update set, First create a new update set and move it to in progress state. Next open the default update set and check the configurations you have made. These records will be in sys_update_xml table with a reference to update set which will be default in your case. You can edit all these records and change the update set to your custom update set name. Then the updates will be transferred to your update set which you can backup.


Hi Chandana,



Thanks!



I saw the "default" update set in my demo instant. I have just exported the "default" update set to xml file without editing any records. I believe the exported xml file should be fine for the configuration restoration purposes, am I right?



Thanks!


As Chandana said, you can use an update set for doing the same. If you haven't already created one, then create one now and update the configurations. The update gets captured as an 'INSERT OR UPDATE' action. So if tomorrow you move those to another demo instances then it will reflect the same you did in the current one.



How to capture an already changed component? You can make any slight changes like making the active field as false and changing it back to true or adding a comment in the scripting block or using the below script:



//below script is the modified version of the script to capture custom data in update set found in SNC Guru


//changes get captured in your current update set


try{


        var tableName = 'sys_property'; //the table of which the data is intended to be captured



        var x = new GlideRecord (tableName);//if you do not want all the data of the table 'sys_property' to be captured then place a specific addQuery


        x.query();



        while(x.next()){


              if (typeof GlideUpdateManager2 != 'undefined')


                  var um = new GlideUpdateManager2();


              else


                    var um = new Packages.com.glide.update.UpdateManager2();


              um.saveRecord(x);


        }


} catch(e){


        gs.log('error in force2UpdateSet:','force2UpdateSet');


}