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

Click here to return to the 'Backup Mail Notes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Backup Mail Notes
Authored by: da2357 on Apr 18, '11 11:24:39AM
This can be done manually, via cron, Automator, or with a plist. I prefer going with a .plist since Apple prefers we migrate away from cron and towards launchd items... and I think it's the quickest to set up. Using Lingon, I created a simple user plist that runs on user login with the command:

/usr/local/bin/rsync -aNHAXx --protect-args --fileflags --force-change --delete-after /Users/davidallie/Library/Mail/Mac-david.allie/Notes.imapmbox /Users/davidallie/Documents/BACKUPS/mail_notes/

In my example, I'm using a custom-compiled rsync, but any rsync will work fine. This way, it will run a backup of that folder each time the user logs in. Obviously you'd need to edit the user account name and mail folder name to match your setup, as well as where you want to store your notes backup.

I suppose you could choose to have the .plist watch the Notes.imapmbox instead and have it run a backup every time it detects a change... which I haven't tested, though should work. I personally would rather have it run it's notes backup once on each login.
Edited on Apr 18, '11 11:28:01AM by da2357

[ Reply to This | # ]