[svlug] Rsync across SSH & alternatives
Zachary Hanna
zhanna at yahoo-inc.com
Thu May 13 15:37:00 PDT 2010
I would recommend
http://www.megapath.com/vpn-security/mpls-site-to-site-vpn/ if you don't
want to maintain the VPN yourself and if it's in the organization's budget.
They are pretty good about maintaining the performance between sites,
especially if you use them as the connectivity ISP at all the locations as
well as for the VPN. Then they can route it across their own backhaul.
On 5/13/10 1:18 PM, "James Sparenberg" <james at linuxrebel.org> wrote:
> On 05/13/2010 12:35 PM, Skip Evans wrote:
>> Oh, of course. I use sshfs all the time for connecting to client
>> servers I'm coding on.
>>
>> I think that would work well, but my real concern is going to be how
>> to monitor the connection and re-establish it should it drop out.
>>
>> Any ideas there?
>>
>> Skip
>>
>> James Sparenberg wrote:
>>>
>>> Have you looked at using sshfs?
>>> http://fuse.sourceforge.net/sshfs.html This is a Fuse file system.
>>> Fully encrypted, and works like NFS without the stale file handles.
>>>
>>> I've used it In similar situations where an HA system had an app
>>> that could come in from any of several servers, but needed to be able
>>> to continue to access the data as if it was always the same server.
>>>
>>> It can be mounted and controlled by fstab, and a simple bash
>>> script can be setup to check every minute for a specific dot file, if
>>> it can't find it, then it remounts the mount.
>>>
>>> One of the things I liked about SSHFS is that it carries with it
>>> the robust nature of an ssh connection, where line glyphs and packet
>>> loss don't cause it to disconnect in a bad way.
>>>
>>> James
>>>
>>> ____________________________________________
>
>>> ___
>>> svlug mailing list
>>> svlug at lists.svlug.org
>>> http://lists.svlug.org/lists/listinfo/svlug
>>>
>>
> what I had done was that I created a .file, then since the original box
> had this on an ext3/4 file system I did chattr +i on that .file. Now
> even root cannot accidentally remove the file.
>
> Next I wrote a simple bash script something like this.
>
> #!/bin/bash
>
> if [ -f /route/to/my/.file ]; then
> sleep 60
> else
> mount -o remount /route/to/my/.file # syntax requires an
> fstab entry
> mail -s "I recreated the mount" me at myaddy.com <.
> fi
>
> I then ran that script as a daemon and anytime it had to remount it did.
>
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/svlug
More information about the svlug
mailing list