Sharing subfolders with different settings?

Grave
Posts: 2
Joined: Fri Jun 28, 2013 3:45 am

Sharing subfolders with different settings?

Postby Grave » Fri Jun 28, 2013 3:57 am

Let me start by saying I'm new-ish to Linux and decided on trying Amahi + Greyhole to overcome performance issues I've been having with Windows Home Server.

Anyway, something I was able to do with WHS was have one folder per user that was accessible only by that user. This allowed for easy one-way syncing from PC to WHS file server since I'd only be creating a job for one folder.

However, I was still able to create an additional share for a subfolder that would be accessible to all (for example, Music folder). So the result would be that I'd have a main folder (let's say User1 that's only accessible to User1) and a media folder in that main directory (User1 > Music) that was still accessible by all.

Unfortunately I can replicate this in Greyhole at all (unless I'm missing something). I can create a Share for User1 and I can create a second share for Music that points to the Music folder in User1 and it works great.... until a fsck. At which point Greyhole pops up a warning for each file (can't remember what, sorry) and moves the files into the trash.

I don't want to give each share it's own separate folder because maintaining multiple sync jobs from PC to File Server would be a nightmare. It's also a lot harder to keep track of what files belong to what PC that way (I have multiple) and likewise making PC specific backups would be a pain.

This issue was brought up: viewtopic.php?f=15&t=3884 But I don't think anything ever came of it. I updated to the latest greyhole version, but it still has the same problem.

I really don't want to go back to WHS because performance on Amahi is so much better especially for streaming video to my XBMCbuntu HTPC, but I don't want to deal with the added maintenance from having to work around the subshare limitations either.

Help?

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

Re: Sharing subfolders with different settings?

Postby bigfoot65 » Sun Jun 30, 2013 8:59 am

I don't think what you want to do can be done with Greyhole without duplicating file copies.

If you have a share called user and inside it there is another share called music, when you configure the share for Greyhole, it will take user and all sub folders as one share and the sub share will be the second one. Thus replicating music twice, once as user and once as music.

Does that make sense? If I misunderstand, maybe draw a picture or show us how your shares look in the dashboard.
ßîgƒσστ65
Applications Manager

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

User avatar
radioz
Posts: 406
Joined: Tue Nov 24, 2009 1:07 pm

Re: Sharing subfolders with different settings?

Postby radioz » Mon Jul 01, 2013 2:54 pm

Perhaps you could achieve what you want (shared music files) by creating a seperate share (say Music) and make it accessible to all (or selected) users. It would eliminate the problem you are experiencing and give everyone access to the music files.

It's not quite the same as what you had before (each user with a Music subdirectory I think), but it should satisfy Greyhole.

Grave
Posts: 2
Joined: Fri Jun 28, 2013 3:45 am

Re: Sharing subfolders with different settings?

Postby Grave » Wed Jul 03, 2013 3:54 am

I don't think what you want to do can be done with Greyhole without duplicating file copies.

If you have a share called user and inside it there is another share called music, when you configure the share for Greyhole, it will take user and all sub folders as one share and the sub share will be the second one. Thus replicating music twice, once as user and once as music.

Does that make sense? If I misunderstand, maybe draw a picture or show us how your shares look in the dashboard.
You got it right. And yes, what you said does make sense. What I was hoping for was the ability to set different access permissions and storage pool copies for different subfolder, but I guess that isn't possible.

What I've done to get around it, is to create a share to a subfolder but NOT check "Uses Pool" on the new share. This effectively results in a symlink type function to the folder granting users access to it without giving access to anything above it.
Perhaps you could achieve what you want (shared music files) by creating a seperate share (say Music) and make it accessible to all (or selected) users. It would eliminate the problem you are experiencing and give everyone access to the music files.

It's not quite the same as what you had before (each user with a Music subdirectory I think), but it should satisfy Greyhole.
While it does eliminate the problems with Greyhole, it'd make my PC->HDA backups more complex than just 1 sync per PC. I think I will be forced to have additional folders, but I want to try to keep it to a minimum.

Thanks all for the help!

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

Re: Sharing subfolders with different settings?

Postby bigfoot65 » Wed Jul 03, 2013 1:49 pm

Yes it does complicate things a bit more. Glad you have something that will work.
ßî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 29 guests