Skip to content

fix(backup): find diskutil, mount and docker in the nightly cron run - #188

Merged
arthware-dev merged 1 commit into
mainfrom
fix/backup-cron-diskutil
Oct 7, 2026
Merged

arthware-dev merged 1 commit into
mainfrom
fix/backup-cron-diskutil

Conversation

@arthware-dev

Copy link
Copy Markdown
Contributor

Summary

  • The nightly backup failed under cron with No such file or directory: 'diskutil': cron's PATH is /usr/bin:/bin, so diskutil, mount and docker were not found.
  • The cron entry now appends /usr/local/bin, /usr/sbin and /sbin. ./stack restart backup rewrites an existing entry.

Squash merge.

The nightly backup failed with `No such file or directory: 'diskutil'`.
cron starts with `PATH=/usr/bin:/bin`, and the cron entry only put the
Homebrew bin in front of it, so tools the sync calls by name outside
those two directories were not found: `diskutil` (`/usr/sbin`), `mount`
(`/sbin`) and `docker` (`/usr/local/bin`, used by the database
snapshots).

The entry now appends `/usr/local/bin`, `/usr/sbin` and `/sbin`.
`./stack restart backup` rewrites an existing entry.
@arthware-dev
arthware-dev merged commit 06caace into main Oct 7, 2026
1 check passed
@arthware-dev
arthware-dev deleted the fix/backup-cron-diskutil branch October 7, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant