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

Filter list action #582

Closed
LeonB opened this issue Jan 20, 2016 · 1 comment
Closed

Filter list action #582

LeonB opened this issue Jan 20, 2016 · 1 comment

Comments

@LeonB
Copy link

LeonB commented Jan 20, 2016

It would be nice if borg list with an archive as positional parameter would also support some kind filtering support. Maybe something like #361 but for the list action.

My use case: I have some kind of webbased dashboard checking if the borg backups includes a mysql dump located in /var/backups/mysql/. I now do borg list /media/backups/borg/myserver::2016-01-19 | grep "var/backups/mysql" but it takes a while to run that command.

@ThomasWaldmann
Copy link
Member

The --filter only filters the status char borg create emits.

For borg list, there is no status char, so you maybe rather need to pipe through grep to search for filenames. Internal filtering would not make that faster as it has to read through the metadata list in any case.

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

No branches or pull requests

2 participants