-
-
Notifications
You must be signed in to change notification settings - Fork 756
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
Request for feature: borg search #4092
Comments
borg does not have an index, so there is nothing to search in. Except I made some experiments a while ago using |
Yeah, I was hoping that instead of me wrapping around the list of borg list, borg info and then list of each archive and then grep for the list of files in each archive, it would be good to have borg do it since it has access to the methods already. |
if you need this frequently, i'ld suggest doing the backups with if you need it infrequently, you can just ad-hoc use implementing grep into borg would be somehow against unix philosophy. also, when implementing it so it searches all archives, it would be extremely slow if one has many and/or big archives. |
hmm..this is like not straight grep but a recursive one across all the available archives for a list of files to check for their inclusion and I think it would be better to let borg do that since it can iterate over the list of archives and the list of files for each of them and do a filter search. |
I was also searching for a search function, expecting I could receive a listing like the "borg list" command in conjunction with a "grep" command produces it IF I know already where to search and only then can grep for it. It would really be nice if borg could provide me a tool by which I could locate available versions of a file or dir, for the case I would have lost it, or having edited it in bad way!
MyOtherFileName SomeDirName |
|
guess this is solved. |
I would disagree and see this issue not as solved. I have the use case like others mentioned before, that I do not know when a file was "backuped". Hence, I want to search in all available backups of my repo for a pattern, file or directory name.
What can I do that a search command is added to borg backup? |
Hello, I have the same issue (searching for a file in the repo). Do you have any further Ideas? Best regards, |
Guess you first need to fix the memory issue. Either upgrade memory or use less memory. borg mount has some options to only partially make stuff available (like only processing some archives or specific paths). |
I use this script to search for a pattern in all archives:
save as search.sh, |
I was wondering if there is a borg search feature where given the list of files as input, I could get the list of backup archives which have the files in them.
The text was updated successfully, but these errors were encountered: