source_directories_must_exist=true incompatible with set working_directory and relative source directories #905

Closed
opened 2024-08-15 13:37:23 +00:00 by P-Takenaka · 3 comments

What I'm trying to do and why

The following setup will result in an error complaining that the source directories do not exist:

  • working_directory set to any directory
  • source_directories set to relative paths from the working_directory
  • source_directories_must_exist set to true

Once source_directories_must_exist is set to false or if absolute directories are used without a working_directory, it works again.

Expected behavior

source_directories_must_exist should take into account the working_directory option.

borgmatic version

1.8.13

borgmatic installation method

pipx

Borg version

1.2.4

Python version

3.11.2

Operating system and version

Debian GNU/Linux 12 (bookworm)

### What I'm trying to do and why The following setup will result in an error complaining that the source directories do not exist: - `working_directory` set to any directory - `source_directories set to relative paths` from the working_directory - `source_directories_must_exist` set to `true` Once `source_directories_must_exist` is set to `false` or if absolute directories are used without a `working_directory`, it works again. ### Expected behavior `source_directories_must_exist` should take into account the `working_directory` option. ### borgmatic version 1.8.13 ### borgmatic installation method pipx ### Borg version 1.2.4 ### Python version 3.11.2 ### Operating system and version Debian GNU/Linux 12 (bookworm)
Owner

Thanks for filing this! I can confirm that the code for the create action is consistent with the behavior you're seeing.

Thanks for filing this! I can confirm that the code for the `create` action is consistent with the behavior you're seeing.
witten added the
bug
label 2024-08-15 15:20:28 +00:00
Owner

Fixed in main and will be part of the next release. Thanks again for taking the time to report this!

Fixed in main and will be part of the next release. Thanks again for taking the time to report this!
Owner

Released in borgmatic 1.8.14!

Released in borgmatic 1.8.14!
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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