Automatic backup
Keep a managed backup repository of your vault so you always have a recent copy.
Keyguard maintains a backup repository of your vault, taking a fresh snapshot as your data changes. Backups run automatically in the background, update incrementally, and encrypt with a password.
An accidental deletion or a bad sync then costs you nothing. An earlier snapshot still has the item.
The backups documentation covers repositories, scheduling, and restoring. For a one-time copy instead, see data export.