Hi,
I've finally got a working filevault+NAS backup solution using rsync. I'm looking to make the process more automatic with a script. I'd like the script to do the following:
I have some experience with batch files and Unix scripts, but OSX is new to me and I'm not sure where to begin. There are also other options which may be more suitable... (Automator? Applescript?).
Any suggestions on the best way to do this?
Thanks in advance.
I've finally got a working filevault+NAS backup solution using rsync. I'm looking to make the process more automatic with a script. I'd like the script to do the following:
- Connect to an AFP share (using password from keychain)
- Mount a sparseimage which is located on the share (also getting password from the keychain)
- If either of the above commands fail the script should abort with an error
- Execute the rsync command
- Unmount the sparseimage
- Disconnect from the AFP share
I have some experience with batch files and Unix scripts, but OSX is new to me and I'm not sure where to begin. There are also other options which may be more suitable... (Automator? Applescript?).
Any suggestions on the best way to do this?
Thanks in advance.