Restoring files from Greyhole Attic

whaites
Posts: 40
Joined: Mon Aug 26, 2013 6:22 pm

Restoring files from Greyhole Attic

Postby whaites » Wed Apr 02, 2014 7:08 pm

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.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Restoring files from Greyhole Attic

Postby bigfoot65 » Wed Apr 02, 2014 7:17 pm

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
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

whaites
Posts: 40
Joined: Mon Aug 26, 2013 6:22 pm

Re: Restoring files from Greyhole Attic

Postby whaites » Thu Apr 03, 2014 6:10 pm

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Restoring files from Greyhole Attic

Postby bigfoot65 » Thu Apr 03, 2014 6:14 pm

That is correct. Please let us know how it goes.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

whaites
Posts: 40
Joined: Mon Aug 26, 2013 6:22 pm

Re: Restoring files from Greyhole Attic

Postby whaites » Thu Apr 03, 2014 7:38 pm

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Restoring files from Greyhole Attic

Postby bigfoot65 » Thu Apr 03, 2014 7:53 pm

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?
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 20 guests