Moving container from server to server

Post your Custom Scripts or Packages.

Moderator: POL Developer

Post Reply
User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm
Contact:

Moving container from server to server

Post by OldnGrey » Mon Jun 23, 2008 11:10 pm

I am often in the situation where I have yesterday's shard backup on my test server and want to move items back to the main shard - eg I want to restore a container of items that was accidently deleted.

These two simple utilities can be used to copy a container (non recursive) out to a cfg file and then import the items from the same file into a target container. The cfg file can of course be moved to another server. The core idea and code is not original, Racalac did these years ago with world items.

I haven't bothered to try and figure out how to recursively copy containers, or even preserve the co-ordinates in the container. I just needed it to do what it does.
Attachments
saverestoreobjects.zip
saveobjects.src and restoreobjects.src
(2.18 KiB) Downloaded 92 times

Justae
Expert Poster
Posts: 79
Joined: Thu May 24, 2007 2:12 pm
Location: South Africa
Contact:

Post by Justae » Thu Jun 26, 2008 10:25 am

Very handy, thanks Oldngrey.

Post Reply