Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Using Rendezvous SSH connection for laptop backup' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using Rendezvous SSH connection for laptop backup
Authored by: rsnyder on Apr 18, '06 06:30:58AM

I have a Powerbook that I want to backup to my PowerMac, but only when I am at the office on a fast connection. I want to automate the process with a crontab entry.

The solution I came up with was to SSH via Rendezvous, rather than IP address. That way when I am not on the local network the SSH command fails, the error is logged, and the backup only happens when I am on the fast local connection.

To do this use ssh myMachinesName.local instead of ssh 123.234.234.123. The connection will only be successful when I am on the same local network as myMachinesName.

I am sure others have thought of this, but I thought it was a pretty cool way to automate connections to other hosts only when you are the same local network. It could be used for any case where you only want to connect when on the local network.



[ Reply to This | # ]