> From: Lars Schou <[EMAIL PROTECTED]> > Reply-To: "Entourage:mac Talk" <[EMAIL PROTECTED]> > Date: Thu, 22 Apr 2004 15:35:24 -0700 > To: "Entourage:mac Talk" <[EMAIL PROTECTED]> > Subject: Re: Back up of Database file > > On 4/22/04 3:28 PM, "Sonja Ray" <[EMAIL PROTECTED]> wrote: > >> I'm so paranoid about the Entourage database, I >> have a cron script running that makes a zipped-up copy of the whole MUD >> folder, appends the date to the end of the name, and places it in the >> "Users" folder just above my home folder, every morning at 5:30 a.m. > > Great idea - would you care to share the script? > > Cheers, > Lars
Sure. Here's the crontab entry: 30 5 * * * /Users/sm/Documents/CronScripts/CpErageDB.sh The script name, obviously, is CpErageDB.sh, and it lives in a CronScripts directory in my Documents folder. And here's the script itself (the contents of CpErageDB.sh): #!/bin/sh ditto -c -k -X --rsrc ~/Documents/"Microsoft User Data" "/Users/Microsoft User Data`date +%m-%d-%y`.zip" See those weird-looking backwards single quotes around the date? You need those to make the date thing work, but I have no idea how you make those. I copy-pasted them from another script I used a couple years ago for a similar purpose, and can't remember where I originally got them - some unix tutorial site somewhere. If they come through on the list okay, you can probably just copy-paste them like I did. I know for a fact that this makes a usable backup of the MUD folder. I've never had to use it to *recover* a corrupted db, but like I said, I use it to copy my MUD over to my laptop regularly, and it works just fine. -- Sonja Ray "It is sobering to reflect that one of the best ways to get yourself a reputation as a dangerous citizen these days is to go about repeating the very phrases which our founding fathers used in the struggle for independence." -- Charles A. Beard -- To unsubscribe: <mailto:[EMAIL PROTECTED]> archives: <http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/> old-archive: <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>
