[Errno 2] No such file or directory: 'borg' #392

Closed
opened 2021-02-20 17:09:18 +00:00 by casperghst42 · 3 comments

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."

before_check:
    - echo "Starting checks."

---- snip ----

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." before_check: - echo "Starting checks." ---- snip ----
Owner

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 your PATH? You can do echo $PATH to see what's in it.

So to fix this from borgmatic's perspective, you can either modify your PATH or set the local_path option in borgmatic's location configuration.

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 your `PATH`? You can do `echo $PATH` to see what's in it. So to fix this from borgmatic's perspective, you can either modify your `PATH` or set the `local_path` option in borgmatic's `location` configuration.
witten added the
question / support
label 2021-02-20 17:59:29 +00:00
Author

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 your PATH? You can do echo $PATH to see what's in it.

So to fix this from borgmatic's perspective, you can either modify your PATH or set the local_path option in borgmatic's location configuration.

I hadn't installed borg. Everything works after installing it.

Thank you very much!

> 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 your `PATH`? You can do `echo $PATH` to see what's in it. > > So to fix this from borgmatic's perspective, you can either modify your `PATH` or set the `local_path` option in borgmatic's `location` configuration. I hadn't installed borg. Everything works after installing it. Thank you very much!
Owner

I'm glad to hear that did it!

I'm glad to hear that did it!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#392
No description provided.