|
|
10.4: Trigger backups on connect with launchd
I've been using a similar script for a while now, except instead of rsync'ing to a hard drive, I rsync over the network to my home server (Mac mini). The problem is that when I'm at home, I need to use the Bonjour name (for this example I'm using "afp.local"), versus at work, I need to use it's public Internet hostname (for this example I'm using "afp.example.com"). The method I use to determine whether I'm at work or at home is to find the BSSID of the current AirPort base station and that gives me enough info. I'm using launchd to execute a backup on a regular (timed) basis, instead of using a watch folder. Since I have a Mac on both ends of the line, I installed RsyncX on both systems and specify that binary so I can keep my resource forks (and other Mac specific bits). I have also set launchd to run this as root, and I have set up ssh keys on both systems as root (in /var/root/.ssh/).
Other possibly useful reading:
10.4: Trigger backups on connect with launchd
Please be very careful about using RsyncX. It is now quite dated and you should not really use it with 10.4
Rsync in 10.4 is at best a difficult proposition.
I would suggest downloading and compiling 2.6.9 from source - samba.anu.edu.au
and follow the instructions in patches/xattr.diff , compiling without ACL support (the provided ACL patch is for Linux ACLs).
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.22 seconds |
|