Grep'ing FileMaker Recovery Logs


{"protected":false,"rendered":"

When you run Recovery (File->Recover…) on a FileMaker database file, everything checked and any errors are logged in the
\nRecovery.log file. In a large file you may get lots of output however, so sifting through this in a text editor isn’t the greatest option. A common technique is to import the log into FileMaker or Excel, it imports nicely in both. Here however I’ll show how you can use the grep command to quickly summarize issues.

\n

\n

A few basics to cover about recovery first.

\n

If I was thinking that I might be keeping the recovered version of the file, but still want to drop indexes and clean up the data structure a bit I’d use a less radical version of Advanced Recovery Options. These options are likely to help clean up a number of common issues, and not likely to introduce any new ones:

\n

\n

\n

But if I’m mainly interested in thoroughly checking if the file has problems I’d use settings like these:

\n

\n

This last set of options is apt to give you the most thorough verification, but the recovered file shouldn’t be used for anything other than salvaging data without some careful consideration.

\n

Once the recovery is done, you are left with a rather lengthy recovery log, and the grep command is just about the perfect tool to quickly locate any possible problem spots.

\n
grep -v -B2 \"\\t0\\t\" path/to/Recover.log
\n

References

\n\n"}

Want updates on our latest blog posts?
Subscribe to our newsletter!

Previous Post
Python with FileMaker®: Get Started with Analytics, Automation and AI
Next Post
Semantic Search with FileMaker 2024 – Claris Community Live