server rollback

General minecraft-related chat.
Post Reply
User avatar
rbos
Posts: 781
Joined: Mon Aug 16, 2010 2:37 pm

server rollback

Post by rbos »

Okay, the spawn area is crashing the server immediately on logon - I'm not sure what's up, and I have no idea how to replace just those chunks from a backup, so I'm reverting to the snapshot from six hours previously.

Sorry. :(
Image
User avatar
rbos
Posts: 781
Joined: Mon Aug 16, 2010 2:37 pm

Re: server rollback

Post by rbos »

*sigh* :(

I should learn the coordinate system, then I could copy in more surgically.
Image
Zaneo
Posts: 171
Joined: Mon Aug 16, 2010 2:40 pm

Re: server rollback

Post by Zaneo »

It's kind of hard to understand but a rough estimate can be found Here. The problem is that each folder can contain up to 4 chunks, which have nothing to do with each other, because of the ambiguity of the system. I could go through with my program and find which chunk is at your specified location (it wouldn't be much of a rewrite).
"That line you read, of course is mine, however, read so badly, it sounds like yours" -- Roman Noble
User avatar
rbos
Posts: 781
Joined: Mon Aug 16, 2010 2:37 pm

Re: server rollback

Post by rbos »

A simple utility that takes a range of coordinates (easy to get) and outputs the chunk filenames would be perfect. Then I could just run it into a script. Consider something like:

Code: Select all

./getchunks -100,100 -200,200 world/
world/g/7/c.g.7.dat
world/g/8/c.g.8.dat
world/g/9/c.g.9.dat
world/g/a/c.g.a.dat
world/g/b/c.g.b.dat
world/g/c/c.g.c.dat
world/g/d/c.g.d.dat
world/g/e/c.g.e.dat
world/g/f/c.g.f.dat
world/g/g/c.g.g.dat
world/g/h/c.g.h.dat
Then, I could just do

Code: Select all

cd world-backup
./getchunks -100,100 -200,200 . | xargs -IASDF cp ASDF ~/world/ASDF
Image
User avatar
rbos
Posts: 781
Joined: Mon Aug 16, 2010 2:37 pm

Re: server rollback

Post by rbos »

Another script that translates between coordinate areas would also be nice.

A routine that accepts a list of chunks from STDIN and moves them by an offset.

./getchunks -100,100 -200,200 world/ | ./movechunks 100,100 world-new

would move those chunks from one location on world/ to another location on world-new.

It would be nice for lifting chunks from one area to another, or from one map to another.
Image
Tiel424
Posts: 68
Joined: Sun Sep 05, 2010 8:38 am

Re: server rollback

Post by Tiel424 »

6 hours? Oh crap. So much for my hangar :P
After all is said and built, more is said than built.
Do not count your glass blocks before they are smelted.
Image
Post Reply