Re: FileMaker ARGH!!!!
Re: FileMaker ARGH!!!!
- Subject: Re: FileMaker ARGH!!!!
- From: David Graham <email@hidden>
- Date: Thu, 22 Mar 2001 15:05:32 -0800
I didn't make the suggestion, but please allow me to chime in ...
At 5:44 PM -0500 3/22/01, Xandra Lee wrote:
>
Devon,
>
That's helpful (but frightening info...especially, no Finder copies!!!--
>
most of my databases have Applescripts which take FMP generated backups,
>
and make duplicates to other disks...
>
>
From what you're saying my backup scripts should:
>
1. close the database(s)
>
2. do a recover
>
3. do a 'Save as'
>
4. Have finder MOVE (the saved as) dbs rather than duplicate them.
This is incorrect. NEVER use recover on a regular basis. ONLY use recover to get data out of a damaged file. You SHOULDN'T continue to use a recovered file since it is not guaranteed to be safe. Instead make sure that you maintain clean backups (clones) of your original FM files (not the ones in use) that you can replace any damaged files with.
You should NEVER attempt to access the FMP files directly via the Finder or other means while FM is using the files. If FM attempts to write to the disk at the moment you are manipulating the file then you can damage your database.
Suggestions:
Scenario #1 - Single User
Create a FM script that saves a copy of the files to a specified folder. Now you can move or otherwise manipulate *those* files and not the originals. This doesn't work if there are any guests logged in.
Scenario #2 - Multi-user
If you don't have FM Server then you'll need to make sure that all guests are logged out before you can use the 'Save a Copy' script step. If you are using FMS then use the built-in backup scheduling utility to safely back up the files to a specified folder. As before you can move or otherwise manipulate *those* files and not the originals.
>
Are you aware of anyway to script FMP to make backups to a folder path based on a variable?
It's not possible. FM can remember the location you want to save the files to so long as it's on the same machine. If you store the 'Save a copy as...' script step and then move the files to a different machine then FM will attempt to save them in the same folder as the original. You can capture this path via AppleScript by calling an Applet from your FM file and then move them to whatever location you want to.
- Dave
--
==============================================================
David Graham Partnerships With Industry
MIS Manager 7540 Metropolitan Dr., #105
voice : 619.681.1999 San Diego, CA 92108
fax : 619.681.1990
http://www.pwiworks.org
AOL IM: dmgraham22
mailto:email@hidden
"We assist persons with disabilities to work in the community"
==============================================================