After my Mac crashed and I had to repair all of my databases which were open during the crash I am thinking about a better backup strategy for my databases as an addition to TimeMachine. I came up with the following idea for a daily backup:
at 00:00 wake up the Mac and close DEVONthink (if still open) via Shell Script
let Arq backup my DEVONthink database folder and the library/Application Support/DEVONthink folder
set the Mac back to sleep via Shell Script
Additionally TimeMachine backups the Mac including the DEVONthink files hourly.
In the software world, it’s a bit of mythology that support uses “Reboot the device” as a lazy way to avoid figuring out what’s wrong. Rebooting actually can keep things running better: releasing memory, shutting down stalled or rogue processes, clearing temp files, etc. We consider it a preventative measure and advocate it on Mac and mobile.
And I have years of experience with replies of “Huh! It works after I rebooted.”(including instances of my own).
No complications intended. Reason is: the Mac crashed while DEVONthink was running with the databases that couldn’t be opened after the crash and rebuild of the Mac. So I needed to have a safe backup with all DEVONthink databases closed, which is mostly the case while the Mac is asleep. So I wake up the Mac at midnight, close DEVONthink if it is running and backup the databases I use all the time. When backup is finished I put the Mac to sleep again.