Notehold defaults to:
- Backup destination:
~/Backups/Apple Notes - Backup interval: 10 days
- Automatic cleanup: enabled
- Email notifications: disabled
Rerun notehold install with one of the settings below to change it. Settings you do not supply are preserved.
Create the destination first, then install with its path:
BACKUP_DIR="$HOME/path/to/your/backup-folder" notehold installChanging the destination does not move or delete existing archives. Afterward, run notehold backup and confirm that the new folder contains a ZIP and adjacent .sha256 file.
For protection from loss of the Mac, choose an external drive or locally downloaded cloud-synced folder. Confirm cloud backups appear on another device or the provider's website; Notehold verifies local files but cannot verify that cloud upload completed.
Set the minimum days between scheduled backups:
BACKUP_INTERVAL_DAYS=7 notehold installThe background job still checks daily and at login. notehold backup always creates a backup immediately.
Cleanup is enabled by default. It keeps the newest backup and recovery points nearest 10, 30, 90, 180, and 365 days old. Redundant verified ZIP and checksum pairs are moved to the Mac Trash, never permanently deleted.
Disable cleanup to retain every completed archive:
AUTO_CLEANUP=false notehold installPreview what the current policy would move:
notehold retention previewThe newest archive, incomplete pairs, invalid checksum metadata, and archives that fail checksum verification are never moved.
Notehold can send an email after it creates and verifies a new backup, and whenever a backup attempt fails. Each email includes a newest-first list of saved backups, their sizes, and the total space used by the ZIP archives. Daily checks that find a recent backup do not send email. A notification-delivery problem is recorded in the backup log but does not invalidate or remove a completed archive.
Create a Resend sending API key and make it available to the current shell as RESEND_NOTEHOLD_API_TOKEN. Then configure the destination and sender:
RESEND_NOTEHOLD_API_TOKEN="$RESEND_NOTEHOLD_API_TOKEN" \
RESEND_EMAIL_TO="you@example.com" \
RESEND_EMAIL_FROM="Notehold <onboarding@resend.dev>" \
notehold installDuring installation, Notehold copies the API key to the login Keychain. The background LaunchAgent does not read .zshrc, and the API key is not stored in the LaunchAgent. Later upgrades reuse the Keychain entry, so the token variable is needed only when initially configuring or replacing the key.
The destination and sender are stored in the LaunchAgent. Resend's onboarding@resend.dev sender can send only to the email associated with the Resend account. To send elsewhere, verify a domain in Resend and use an address on that domain, such as Notehold <backups@updates.example.com>.
To disable email while preserving the Keychain entry:
RESEND_EMAIL_TO="" RESEND_EMAIL_FROM="" notehold install