[Errno 2] No such file or directory: 'borg' #392
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#392
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I want to backup a few things from my mac to my borgrepor (on a linuxbox). I copied the configuration from one of of my linux servers, and changed the source directories.
Now when I run 'borgmatic -n' I get: [Errno 2] No such file or directory: 'borg'
Borgmatic: 1.5.12
I run as a 'user' not root.
I can't figure out what is missing - any idea?
Thanks.
--- snip ---
Ensuring legacy configuration is upgraded
/Users/userA/.config/borgmatic/config.yaml: Running command for pre-everything hook (dry run; not actually running hooks)
/Users/userA/.config/borgmatic/config.yaml: No commands to run for pre-prune hook
/Users/userA/.config/borgmatic/config.yaml: No commands to run for pre-backup hook
/Users/userA/.config/borgmatic/config.yaml: Running command for pre-check hook (dry run; not actually running hooks)
borg@linuxrepo.acme.com:repo: Pruning archives (dry run; not making any changes)
borg prune --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --keep-yearly 1 --prefix {fqdn} --lock-wait 5 --debug --show-rc --dry-run --save-space borg@linuxrepo.acme.com:repo
borg@linuxrepo.acme.com:repo: Error running actions for repository
[Errno 2] No such file or directory: 'borg'
/Users/userA/.config/borgmatic/config.yaml: No commands to run for on-error hook
/Users/userA/.config/borgmatic/config.yaml: Error running configuration file
/Users/userA/.config/borgmatic/config.yaml: No commands to run for post-everything hook
summary:
/Users/userA/.config/borgmatic/config.yaml: Error running configuration file
borg@linuxrepo.acme.com:repo: Error running actions for repository
[Errno 2] No such file or directory: 'borg'
Need some help? https://torsion.org/borgmatic/#issues
--- snip ---
Configuration:
---- snip ----
location:
source_directories:
- /Users/userA/cloud
- /Users/userA/Dropbox
- /Users/userA/Documents
- /Users/userA/.config
- /Users/userA/.bash_profile
repositories:
- borg@linuxrepo.acme.com:repo
numeric_owner: true
storage:
encryption_passcommand: cat /Users/userA/.config/borgmatic/borg-passphrase
borg_config_directory: /Users/userA/.config/borgmatic/config
borg_security_directory: /Users/userA/.config/borgmatic/security
relocated_repo_access_is_ok: true
unknown_unencrypted_repo_access_is_ok: true
ssh_command: ssh -i /Users/userA/.config/borgmatic/id_borg
archive_name_format: '{fqdn}-{now}-test'
compression: zlib,5
lock_wait: 5
extra_borg_options:
prune: --save-space
check: --save-space
retention:
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
keep_yearly: 1
prefix: '{fqdn}'
consistency:
checks:
- repository
hooks:
before_everything:
- echo "Starting actions."
---- snip ----
Thanks for reporting this. My best guess is that either Borg is not installed on this server, or it's not on the system PATH such that borgmatic can find it. Do you know where the
borg
binary is located? Does its containing directory show up on yourPATH
? You can doecho $PATH
to see what's in it.So to fix this from borgmatic's perspective, you can either modify your
PATH
or set thelocal_path
option in borgmatic'slocation
configuration.I hadn't installed borg. Everything works after installing it.
Thank you very much!
I'm glad to hear that did it!