Time Machine, no matter how some might say it’s only meant for grandmothers and alike, is so simple and secure to use, it’s would be silly not to. Even if only as an extra layer of data security
For me, the ideal setup is that the Time Machine backup drive lives on my home network rather than directly connected via FireWire or USB. All though Leopard has a simpler way interface for connecting to computers on your network – compared to Tiger – it would be nice to for this to happen automatically. After all, it’s not automatic if you have to think about it.
I’m really just a novice when it comes to AppleScript but luckily it’s a nice and easy scripting language. I wrote the script below to run at login. All it does is it checks which wireless router you’re connected to and if it’s the one you’ve predefined as your home network it then connects to a drive on that network.
set SSID to do shell script "/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | awk '/ SSID: / {print $2}'"
if SSID is "xxxx" then --replace xxxx with your chosen wireless network name
tell application "Finder"
mount volume "xxxx" --replace xxxx with the address of your drive. you can find that by 'Get Info' on a mounted drive
end tell
end if
I know this is really basic and could have more features by adding functionality like connecting via the Internet if not at home (I’m actually not sure if that would work with Time Machine) and maybe connecting hourly, rather than just at login. If you want to improve it in anyway please feel free to do so and post your findings below (I’m looking at you Alex).
–kristian
ps. Thanks to StefanK at MacScripter BBS for the SSID bit of the code.
[update] Further investigation reveals that Time Machine automatically connects to networked drives, thus removing the need for the script above. In any case, the script still works, and can be used for other drives you might want to use on a specific network.