Skip to content

[Feature Request] Support quoting of command when using "borg create" with "--paths-from-command" #5968

@Mark-Joy

Description

@Mark-Joy

With borg version 1.2.0b3, It is possible to chain multiple pipes using --paths-from-stdin i.e:

apt-file list bash | sed -Ee 's/^.*: //g' | borg create --show-version --info --progress --stats --list --compression=lz4 --paths-delimiter="\n" --paths-from-stdin ::BashPkg-{now}

A better form would be using --paths-from-command

borg create --show-version --info --progress --stats --list --compression=lz4 --paths-delimiter="\n" --paths-from-command ::BashPkg-{now} -- "apt-file list bash | sed -Ee 's/^.*: //g'"

However, it won't work. I got error:
command "apt-file list bash | sed -Ee 's/^.*: //g'" not found

If I removed the double quote at "apt-file..., then it was borg create command pipe with sed command, not apt-file with sed.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions