Page 1 of 1

Restoring files from Greyhole Attic

Posted: Wed Apr 02, 2014 7:08 pm
by whaites
In a masterstroke of pure genius, I managed to delete all of my video files from my server (I think I somehow copied an empty directory and overwrote my server location using some Robocopy flags). At any rate, I just discovered that my files seem to still exist in the attic.

I definitely do not trust myself at the moment, so I was hoping someone could confirm the restore steps. I did not already have an Attic share, so I think I need to use the command line. I've read warnings about mounting gh directly, but I don't know if that applies to what I want to do. So before I try - do I just want to move files from the attic back to my landing zone? Is the command just:

Code: Select all

mv /var/hda/files/drives/drive2/gh/.gh_trash/Videos /var/hda/files/drives/drive2/Videos
The second location is my samba share for videos.

Thanks for helping a genius.

Re: Restoring files from Greyhole Attic

Posted: Wed Apr 02, 2014 7:17 pm
by bigfoot65
Just create the attic share. It can be done at any time and will not affect the files in the attic.

http://p23.oq.sl.pt

So much easier to copy them back with the share.

UPDATE: Reading that page indicated the files might not show up since they were there before the share was created. If that is the case, then you would need mount shares locally service installed and running before you copy/move the files from the attic.
https://wiki.amahi.org/index.php/Mount_Shares_Locally

Re: Restoring files from Greyhole Attic

Posted: Thu Apr 03, 2014 6:10 pm
by whaites
Thanks for pointing out the mount script. Glad I didn't just copy.

After running the mount script, I would use the local mount share for the destination, correct? So:

Code: Select all

mv /var/hda/files/drives/drive2/gh/.gh_trash/Videos /mnt/samba/Videos

Re: Restoring files from Greyhole Attic

Posted: Thu Apr 03, 2014 6:14 pm
by bigfoot65
That is correct. Please let us know how it goes.

Re: Restoring files from Greyhole Attic

Posted: Thu Apr 03, 2014 7:38 pm
by whaites
I'm definitely missing something. I think my local mount must be on my system drive, not one of the data drives. I keep running out of disk space even though I'm trying to move files and there is plenty of space on my data drives.

Per the wiki, I am trying to move files to /mnt/samba/Videos - but I still don't see anything showing up in my normal hda Videos share, and I don't know how to use a bigger disk for this mount.

Thanks again

Re: Restoring files from Greyhole Attic

Posted: Thu Apr 03, 2014 7:53 pm
by bigfoot65
I would venture to say the local mount is on the same drive as the Landing Zone. You may have to copy a small amount of files at a time.

One other possibility would be to copy the files to an external drive, then move them using a client to the share.

I am just guessing as I have never had to perform such a feat. Have you checked the Greyhole website for help?