Author Topic: What to back up  (Read 1448 times)

Offline DavidHoffmanuk

  • Sr. Member
  • ****
  • Posts: 315
    • View Profile
What to back up
« on: January 14, 2023, 08:43:45 AM »
I had a fright this morning with a vanishing drive. All sorted now but I was wondering if my current backup strategy was enough.

I back up everything in the catalog folder -
catalog_undo.pmdb
catalog_undo.pmdb-shm
catalog_undo.pmdb-wal
catalog.pmdb
catalog.pmdb-shm
catalog.pmdb-wal
proxies

Is that enough? I don't back up my system or apps so nothing in Application Support or anywhere else there is safe. Does this matter and, if so, what should I add to my backups?

Thanks
David Hoffman

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: What to back up
« Reply #1 on: January 14, 2023, 01:41:55 PM »
David,

I had a fright this morning with a vanishing drive. All sorted now but I was wondering if my current backup strategy was enough.

I back up everything in the catalog folder -
catalog_undo.pmdb
catalog_undo.pmdb-shm
catalog_undo.pmdb-wal
catalog.pmdb
catalog.pmdb-shm
catalog.pmdb-wal
proxies

Is that enough? I don't back up my system or apps so nothing in Application Support or anywhere else there is safe. Does this matter and, if so, what should I add to my backups?

Don't backup those files if the -shm or -wal files are present.  Generally this means that Photo Mechanic Plus is running and those databases are currently open and can potentially be modified.  Please quit Photo Mechanic Plus first (the -shm and -wal files should disappear) and then backup the catalog files and the proxies folders.  If you want to not have to reintegrate, you'll also have to backup the catalog state database.  It is named "cat_state.sq3" and it is located in the following path on macOS:

~/Library/Application Support/Camera Bits, Inc/Photo Mechanic/catalog/state/

You can get there quickly by using the Go to Folder command on the Go menu in the Finder and pasting the above path.

If you also want to backup your settings/preferences, backup the com.camerabits.PhotoMechanic folder in the following path:

~/Library/Preferences/

Only backup and restore when Photo Mechanic Plus is not running.

HTH,

-Kirk
 

Offline DavidHoffmanuk

  • Sr. Member
  • ****
  • Posts: 315
    • View Profile
Re: What to back up
« Reply #2 on: January 15, 2023, 02:50:46 AM »
Thanks Kirk, that's clear and helpful. I'll need to write a script to quit PM before the backups run but that shouldn't be hard.
David