On --create: Exclude files references locally created tmp file on remote server (and fail) #400

Closed
opened 2021-03-18 13:38:30 +00:00 by grin · 1 comment

What I'm trying to do and why

location:
    exclude_patterns:
    - '*.pyc'
    - '/home/*/.cache'
    - '/var/*/borg*'
    

It seem to create (by default at least) a random /tmp/ file containing the exclusions.

But --create fails due to

Command 'borg create --exclude-from /tmp/tmp0t5fv_6k --compression zstd,12 --one-file-system --debug --show-rc --stats x@x:x::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f} /' returned non-zero exit status 2.

since on the remote the file does not exist and borg takes this is fatal:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpmp6929xl'

borgmatic version: 1.5.13.dev0

borgmatic installation method: Debian package

Borg version: borg 1.1.15 local, 1.1.9 remote.

Python version: Python 3.9.1+ local, Python 3.7.3 remote

operating system and version: Both debian, local sid, remote buster

#### What I'm trying to do and why ```yaml location: exclude_patterns: - '*.pyc' - '/home/*/.cache' - '/var/*/borg*' … ``` It seem to create (by default at least) a random /tmp/ file containing the exclusions. But `--create` fails due to `Command 'borg create --exclude-from /tmp/tmp0t5fv_6k --compression zstd,12 --one-file-system --debug --show-rc --stats x@x:x::{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f} /' returned non-zero exit status 2.` since on the remote the file does not exist and borg takes this is fatal: `FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpmp6929xl'` **borgmatic version:** 1.5.13.dev0 **borgmatic installation method:** Debian package **Borg version:** borg 1.1.15 local, 1.1.9 remote. **Python version:** Python 3.9.1+ local, Python 3.7.3 remote **operating system and version:** Both debian, local sid, remote buster
grin changed title from Exclude files references locally created tmp file on remote server (and fail) to On --create: Exclude files references locally created tmp file on remote server (and fail) 2021-03-18 13:46:01 +00:00
grin closed this issue 2021-03-18 13:55:35 +00:00
Author

stupid error messages. 'init' was failed originally. :-S sry.

stupid error messages. 'init' was failed originally. :-S sry.
Sign in to join this conversation.
No Milestone
No Assignees
1 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#400
No description provided.