On or near 6/7/04 2:42 PM, Barry Wainwright at [EMAIL PROTECTED] observed:
> On 7/6/04 10:14 pm, "Allen Watson" <[EMAIL PROTECTED]> wrote:
>
>> On or near 6/7/04 1:37 PM, Barry Wainwright at [EMAIL PROTECTED] observed:
>>> If you are going to back up the database, make sure the script quits all
>>> office apps AND the database Daemon (tell app "Microsoft Database Daemon" to
>>> quit) before you take the copy. Taking a copy with the daemon still running
>>> is likely to create an incomplete copy because file buffers in the daemon
>>> have not been written back to disk.
>>
>> I keep forgetting to mention that! My cron job does that.
>>
>
> I expected you to know that, Allen :) I was mentioning it for the other
> readers on this list.
Yes, and I responded to underline what you were saying. :-)
Incidentally, here's how my Cron setup works (I set it up using Cronnix):
I quit and relaunch Entourage before running the backup. Since I have a
schedule to send/receive mail every 10 minutes on the ten-minute mark, I
quit shortly before that (so I won't be interrupting a mail pickup) and
relaunch about 15 minutes later, usually enough to complete my backup.
At 5:25 AM, cron runs this one-line shell script:
osascript -e 'tell application "Microsoft Entourage" to quit'
At 5:30 AM, cron runs a shell script like this:
/Users/allen/Library/Scripts/Utility/CronTab/CpErageDB.sh
That script contains this code, which first makes a copy of my Microsoft
User Data folder with the date as a suffix, and compresses it with zip
compression:
#!/bin/sh
ditto -c -k -X --rsrc ~/Documents/"Microsoft User Data" "/Users/Microsoft
User Data`date +%m-%d-%y`.zip"
osascript ~/Library/Scripts/Utility/CronTab/purge\ MUD\ backups
The latter AppleScript purges the backups to three versions, like this:
tell application "Finder"
set dir to "Users:"
set fList to files in folder dir whose name begins with "Microsoft User"
if (count fList) > 3 then
repeat with a from 1 to ((count fList) - 3)
delete {item a of fList}
end repeat
end if
empty trash
end tell
Finally, at 5:45 AM, cron runs this final one-liner:
osascript -e 'tell application "Microsoft Entourage" to ACTIVATE'
I've not encountered any problems with this; it runs reliably. I don't close
down the Database daemon, but since there has been nothing but e-mail
activity on the database for hours, I don't think I'm risking much data loss
if any here. To be honest, I have not tried launching one of these backed up
identities; I should do that some time soon.
--
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/>