Move images from one instance to another

vps
Tera Contributor

Hi All,

I found a way to move images from one instance to another. I am using below script to do that ;

var rec = new GlideRecord('db_image');

rec.addEncodedQuery('category=kb^nameLIKEKB0010714');

rec.query();

while(rec.next()){

//Push the record into the current update set    

var um = new GlideUpdateManager2();

um.saveRecord(rec);

}

The problem is, I have more than 4000 images in the table. It is taking lot more time to push all images in the single update set. Is there a way I can do this through slots for 300 images at a time?

3 REPLIES 3

gauravchoudhury
Tera Guru

Hi Varun,



There are several methods for moving data from one instance to another.



The system offers the following processes to move data from one instance to another.


vps
Tera Contributor

I don't think so you can move images by using any of the methods.


Hi Varun,



You can export the XML file for the required images and load that file in image table.



Also, refer to this blog for your reference. This should help.