kentonv changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things sandstorm.io. Say hi! | Have a question but no one is here? Try asking in the discussion group: https://groups.google.com/group/sandstorm-dev
_whitelogger has joined #sandstorm
Mitar has quit [Ping timeout: 260 seconds]
Mitar has joined #sandstorm
xet7 has quit [Remote host closed the connection]
xet7 has joined #sandstorm
xet7_ has joined #sandstorm
xet7 has quit [Ping timeout: 256 seconds]
xet7_ has quit [Remote host closed the connection]
TC01 has quit [*.net *.split]
edwardl has quit [*.net *.split]
Mitar has quit [Ping timeout: 245 seconds]
TC01 has joined #sandstorm
edwardl has joined #sandstorm
Mitar has joined #sandstorm
hannes_ has joined #sandstorm
<hannes_> is there a way that i might be able to recover a deleted grain on a server i am full root on?
<JacobWeisz[m]> I assume when Sandstorm permanently deletes something, it permanently deletes something. Is it a machine you can run any sort of drive recovery software on?
<hannes_> yeah, i could do that. write activity should have been minimal
<hannes_> what would i be looking for
<JacobWeisz[m]> Should be a folder with the grain ID, I believe. It'd be awful to figure out if you didn't know that though, I imagine.
<hannes_> that i do have! :)
<JacobWeisz[m]> I don't remember the exact file structure, but there's a grains folder somewhere inside /opt/sandstorm, and it'd be in there.
<JacobWeisz[m]> Assuming you can recover the exact files, getting it back into Sandstorm would be it's own process: Probably downloading a grain backup of an empty grain from the same app, pasting the data in, and then restoring it that way...
<hannes_> i just lost all my tasks so i would even hexedit the living poop out of it if necessary...
<hannes_> trying testdisk/photorec now
<abliss> (just to be sure: you did check sandstorm's trash can, right?)
<hannes_> i was 1000% sure that i had migrated my setup to devsync so i had emptied the trash can right away \o/
<hannes_> but then it turns out devsync does not handle tasks and then it turned out the tasks i had on my phone for days were just cached by something and went poof when i uninstalled davx5
<hannes_> super mess
<isd> Grains are stored under /opt/sandstorm/var/sandstorm/grains/<grain-id>, if that helps
<hannes_> if it was moved to the trash, does that mean a archive was created or something like that?
<hannes_> would that file include certain string by any chance?
<isd> I think moving to the trash just updates a database entry, so wouldn't change the directory structure at all.
<hannes_> dang
<hannes_> well i think i recovered most so far (searched for VTODO as it was todos in a .ics format in Radicale), i'll try to get the more recent stuff tomorrow.
<hannes_> got a snapshot of the server
<hannes_> thanks for your help already!
<hannes_> (PS: I HATE *DAV EVERYTHING AND SMARTPHONE INTERFACES AAAAAAAAH)
<isd> No problem! sorry I couldn't give you an eaiser solution.