Page 1 of 1

Adding Attic support to mount_shares_locally

Posted: Mon Apr 09, 2012 1:10 pm
by arnonm
Small improvement to mount_shares_locally. Add the following line after the sleep 10:

/usr/bin/testparm -s 2>/dev/null | grep -oE "Greyhole Trash|Greyhole Attic|Greyhole Recycle Bin" | xargs -d "\n" mkdir -p

Will also create the appropriate Trash folder if you have it enabled

Re: Adding Attic support to mount_shares_locally

Posted: Mon Apr 09, 2012 2:12 pm
by bigfoot65
That is great! Would you mind adding his to the wiki? We would greatly appreciate it.

Re: Adding Attic support to mount_shares_locally

Posted: Mon Apr 23, 2012 5:35 am
by modem7
I can't seem to get this to add the shares manually.

Gives an error w/ mkdir.

Re: Adding Attic support to mount_shares_locally

Posted: Mon Apr 23, 2012 8:38 am
by bigfoot65
Did you add the share via the Amahi Dashboard? The Greyhole Attic/Trash has to be added there. There should be guidance in the wiki or on the Greyhole web site to address this procedure.

Also, after adding it the mount_shares_locally should automatically pick it up, so there is no need for the step to add it. I checked mine and never added it to the script, but it is mounted locally.

Re: Adding Attic support to mount_shares_locally

Posted: Thu Apr 26, 2012 4:02 am
by modem7
All working now.

Many thanks!

Re: Adding Attic support to mount_shares_locally

Posted: Thu Apr 26, 2012 4:53 am
by bigfoot65
Small improvement to mount_shares_locally. Add the following line after the sleep 10:

/usr/bin/testparm -s 2>/dev/null | grep -oE "Greyhole Trash|Greyhole Attic|Greyhole Recycle Bin" | xargs -d "\n" mkdir -p

Will also create the appropriate Trash folder if you have it enabled
There is no need to do this manually. If you create the share as described in the Dashboard and have the mount_shares_locally script running, it will pick it up automatically.

If there is something I am missing, please let me know.