Hi Ralph,
Ralph Slooten <[EMAIL PROTECTED]> writes:
> I have done a similar thing at work, except what I do is first create
> an ssh tunnel, then rsync to the locally listening port. Works
> perfectly. In my setup the remote server is running an SSH server
> which is not accessible directly. Maybe this will help you.
>
>
> #!/bin/bash
> SSL_COMMAND="ssh -p 2222 [EMAIL PROTECTED] -f -N -L 8000:localhost:873"
> SSL_PID=`ps aux | grep "$SSL_COMMAND" | egrep -v 'grep' | awk '{print $2}'`
>
> if [ "$SSL_PID" == "" ]; then
> echo "=> Creating SSH tunnel to myserver"
> $SSL_COMMAND
> SSL_PID=`ps aux | grep "$SSL_COMMAND" | egrep -v 'grep' | awk
> {print $2}'`
> else
> echo "=> SSH tunnel already exists. Using existing tunnel."
> fi
>
> if [ "$SSL_PID" != "" ]; then
> echo "=> Connecting through SSH tunnel with PID $SSL_PID"
> rsync rsync://localhost:8000/wwwroot
> /mnt/samba/hotcopy/myserver/wwwroot \
> -rvtzp --delete --modify-window=1
>
> echo "=> Closing SSH tunnel"
> kill $SSL_PID
> else
> echo "ERROR: SSH Connection failed! The backup could not complete"
> fi
Another responder suggested rdiff-backup. I'll give that a try first.
Thanks,
Roger
--
[EMAIL PROTECTED] mailing list