Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: StuC on October 21, 2009, 04:14:53 PM

Title: Affa - Samba share path truncate or mirror as Ibay.
Post by: StuC on October 21, 2009, 04:14:53 PM
I have tried various ways to get about 10G of data mirrored daily to our Singapore offices.
We have a VPN but the SMB protocol dies in the face of the 300ms+ latency or network issues.
I've tried various Windows versions of rsync but I am obviously far too thick to make it work (or there are conflicts with other things installed in the remote MS server history).

Affa has been a revelation and I can reliably see the data copied to a remote Virtual SME box 100%.

As our network is heavily biased towards MS I then need to make a copy of the data - Read Only on a MS server 2k3 box for average user access.

My problem is the Samba share full file path like \\192.168.xxx.xxx\Affa-Job-job-uk\scheduled.0\home\e-smith\files\ibays\production\files\ added to the already long UK file path/naming poor old Windows can't even see some of the files to copy them off.
This silent failure with Windows saying there are "no files!" while Linux says there is fooled me for a few days.

If I had a way to mirror/link the files (Linux) to an ibay like \\192.168.xxx.xxx\uk-ibay\ and make them accessible by normal groups (read only) I could cut out the Windows box completely and all that "MS - I can't see the files" nonsense.

Hope that makes sense, I basically want to make greater use of the Affa created - Samba share and remove some of the path length.

Thanks for any advice.

Title: Re: Affa - Samba share path truncate or mirror as Ibay.
Post by: cactus on October 21, 2009, 04:34:23 PM
Just a quick suggestion as I have a hard time understanding your current process and desires:

Can't you just create a symlink in an ibay to the location where the Affa data is stored and configure the ibay to allow for Symlinks using the FollowSymlinks property and on top of that set the ibay to read only for the group of users that is allowed to access it?

Code: [Select]
cd /home/e-smith/ibays/ibayname/files/
ln -s /path/to/affa/files/folder/or/whatever linkname/
db account ibayname setprop FollowSymLinks enabled
You could either set permissions through server-manager or like this:
write (admin)/read (group)
Code: [Select]
db account ibayname setprop UserAccess wr-admin-rd-groupAfter that make changes stick:
Code: [Select]
signal-event ibay-modify ibayname
Aboce should create a folder called linkname in the files folder of your ibay (illustrated here for the purpose as ibayname).

Now test and see if it works for you or explain me (or us) what you really want...
Title: Re: Affa - Samba share path truncate or mirror as Ibay.
Post by: StuC on October 21, 2009, 04:41:04 PM
You have understood exactly what I was after.

(Sorry I do tend to write long and tortured text.)

I've never used the symlinks like that but did wonder if that was applicable and what affect would take place when Affa updated the files.

I'll try it and let you know.

Many thanks for the fast response.