Hasty Briefsbeta

Bilingual

How I configure BorgBackup and borgmatic (2023)

9 months ago
  • #macOS
  • #Backup
  • #BorgBackup
  • Configuration of BorgBackup and borgmatic on macOS, tested on MacBook Air M2 with macOS Ventura 13.4.1.
  • Challenges with macOS's logging system (unreliable unified logging) and solution using a helper script for logging borgmatic output.
  • Creation and activation of a LaunchAgent for scheduling borgmatic backups hourly, with instructions for immediate execution.
  • Comparison between systemd and launchctl, noting launchctl's limited process isolation and hardening capabilities.
  • Instructions for restoring files using borgmatic with fzf for archive selection, mimicking macOS Time Machine's interface.
  • Exporting BorgBackup keys to paper for secure storage and recovery purposes.
  • Methods for validating and testing backups, including consistency checks and sampling tests with find or mdfind commands.
  • Combination of BorgBackup and Time Machine for adhering to the 3-2-1 Backup Rule, utilizing both for on-site and off-site backups.
  • Use of BorgBase for creating off-site backups with BorgBackup.