Wrong call syntax with borgmatic borg diff #478

Closed
opened 2021-12-10 22:52:27 +00:00 by borg.haefemeier · 2 comments

What I'm trying to do and why

I want to call a diff command with borgmatic borg diff to create a diff list between two archives. It calls the raw borg command with adding configured repository as first parameter, which is wrong.

Steps to reproduce (if a bug)

borgmatic borg diff repository::archive1 archive2

Actual behavior (if a bug)

It calls the diff command with wrong arguments:

borg diff: error: argument REPO::ARCHIVE1: "repository": No archive specified
Command: 'borg diff repository repository::archive1 archive2'

Expected behavior (if a bug)

borg diff repository::archive1 archive2

Other notes / implementation ideas

Environment

borgmatic version: 1.5.20

borgmatic installation method: dnf (rpm)

Borg version: 1.1.17

Python version: 3.10.0

Database version (if applicable): none

operating system and version: Linux 5.14.18-300.fc35.x86_64

#### What I'm trying to do and why I want to call a diff command with `borgmatic borg diff` to create a diff list between two archives. It calls the raw borg command with adding configured repository as first parameter, which is wrong. #### Steps to reproduce (if a bug) ``` borgmatic borg diff repository::archive1 archive2 ``` #### Actual behavior (if a bug) It calls the diff command with wrong arguments: ``` borg diff: error: argument REPO::ARCHIVE1: "repository": No archive specified Command: 'borg diff repository repository::archive1 archive2' ``` #### Expected behavior (if a bug) ``` borg diff repository::archive1 archive2 ``` #### Other notes / implementation ideas #### Environment **borgmatic version:** 1.5.20 **borgmatic installation method:** dnf (rpm) **Borg version:** 1.1.17 **Python version:** 3.10.0 **Database version (if applicable):** none **operating system and version:** Linux 5.14.18-300.fc35.x86_64
Contributor

Instead of borgmatic borg diff repository::archive1 archive2 try

borgmatic borg diff --archive archive1 -- archive2

This works for me.

Instead of `borgmatic borg diff repository::archive1 archive2` try ```bash borgmatic borg diff --archive archive1 -- archive2 ``` This works for me.

Thanks, it works for me too.

Thanks, it works for me too.
witten added the
question / support
label 2021-12-10 23:01:23 +00:00
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#478
No description provided.