Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add examples for --paths-from-stdin, --paths-from-command, --paths-separator #5644

Conversation

rpolley
Copy link
Contributor

@rpolley rpolley commented Jan 22, 2021

Closes #5551
Added some examples for these options to the borg create documentation, one that showcases each of them.

@rpolley rpolley mentioned this pull request Jan 23, 2021
docs/usage/create.rst Outdated Show resolved Hide resolved
docs/usage/create.rst Outdated Show resolved Hide resolved
# Use --paths-from-command with find to only backup files from a given user
$ borg create --paths-from-command -- /path/to/repo::joes-files find ~ -user joe
# Use --paths-from-stdin with --paths-delimiter to backup files listed in a csv file
$ cat ~files-to-backup.csv | borg create \
Copy link
Member

@ThomasWaldmann ThomasWaldmann Jan 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it needs to have a / after the ~.

also, there is still the "one row" issue. when thinking of csv, one usually has items distributed over rows, not over columns (which are rather for other attributes of same item).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read up on the one find option and now I see why someone would want to do that.

@ThomasWaldmann ThomasWaldmann added this to the hydrogen-b2 milestone Jan 24, 2021
Copy link
Member

@ThomasWaldmann ThomasWaldmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ThomasWaldmann ThomasWaldmann merged commit 83116e5 into borgbackup:master Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

examples for --paths-from-stdin --paths-from-command --paths-separator
2 participants