Hi all, 

We recently ran into an issue where we couldn't upgrade, downgrade, mount 
or basically use any of our image files inside our s3ql container.

Our service provider (RackSpace) did something that interrupted the 
connections between the software and the container making it very unstable 
after months of stability (not a s3ql problem). When we tried to upgrade it 
would stop at the 10 to 20% mark. When we tried to use 2.12 it wouldn't 
mount, fsck, etc because it didn't understand the new version.

None of the metadata would be recognized due to the above attributes either 
so it meant the contrib based copy tools didn't work for us as well.

This left us in a rut. We quickly had a new physical raid setup with 
backups, but we needed the newest files in the s3ql.

After lots of trial and error we deduced that the data files are xz 
compressed and we were able to look up the file names from the .db file 
that we still had from the day before the crash (this was our only lucky 
break in two weeks of hell).

Attached is a FatFreeFramework based PHP CLI script (I'm not good enough in 
python to do it yet) which we created to lookup files from db file, and 
extract them from the corresponding s3ql_data file. Please note, this is a 
LAST RESORT SCRIPT, and is meant for pure recovery purposes.

xz will be needed on your system, so make sure it's installed.

Before using this script you should download all your files from your cloud 
container as this is meant for local recovery - for connection reasons 
above. 
This is built primarily for Rackspace backend, with a NON-ENCRYPTED 
filesystem (worked for me). 
I built in a AES decrypt example, from the php.net examples, but haven't 
actually tested it.

This script is released as a GPLv2 license and is free to use with no 
warranty. Feel free to contact me for any questions.

Hope it helps. I'd ask that Nikolaus add it to the contrib or make a py 
version to add to it.

-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

<<attachment: recover.php>>

Reply via email to