Page 1 of 1
server rollback
Posted: Sat Aug 28, 2010 1:16 pm
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.
Re: server rollback
Posted: Sat Aug 28, 2010 1:37 pm
by rbos
*sigh*
I should learn the coordinate system, then I could copy in more surgically.
Re: server rollback
Posted: Sat Aug 28, 2010 7:26 pm
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).
Re: server rollback
Posted: Sat Aug 28, 2010 8:37 pm
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
Re: server rollback
Posted: Sat Aug 28, 2010 8:43 pm
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.
Re: server rollback
Posted: Sun Sep 05, 2010 10:05 pm
by Tiel424
6 hours? Oh crap. So much for my hangar