-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Full, machine readable directory structure of a snapshot with one command line call #1060
Comments
Thanks for the suggestion, that's a good feature to add. In the meantime you can check if the
The matches are even printed incrementally while restic is working, so you can see it also as a stream of results after the initial |
What's the desired output format? A huge JSON document (like the trees in the repo) with trees inserted instead of tree IDs? Or a sequence/array of tree objects with an additional attribute |
At first glance the output of As for the desired output format for |
I'd prefer a sequence of trees, depth first or so, so the following program doesn't need to parse it all at once. What's your use case btw? What are you building? |
It's more of a ".NET research project", where I want to try newer things (compared to what I do at work), e.g. WPF or Nancy. Basically it's a snapshot file browser, maybe remotely comparable to the existing fusemount, but for Windows and without the low level filesystem stuff, since I prefer to work with managed runtimes like the CLR or JVM. Right now it's an early prototype, but hopefully it will be usable someday and I'll release it as open-source. |
@chaquotay sounds interesting! That would definitely help with restic adoption for Windows folks over here. |
This was implemented in #1953 which was included in restic 0.9.3. Just call |
I'd like to retrieve a full, machine readable directory structure (directories and files) of a snapshots in as few command line calls as possible, ideally in one call.
Right now it looks like the only way to achieve this is to fetch the snapshot`s subtree id, and recursively walk through all the subtrees, resulting in one command line call per subtree id.
The
restic ls
command almost yields the information that I try to extract, but not in a machine readable format. So adding support for a machine readable format (natural choice: JSON, with the existing--json
switch) torestic ls
would fit my needs, but I'm open to other solutions.The text was updated successfully, but these errors were encountered: