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

features: multiple filter, high-level filter, skip files, flat output #17

Closed
maluba007 opened this issue Jul 23, 2016 · 4 comments
Closed
Assignees

Comments

@maluba007
Copy link

horrorho! First of all: where is that piggy bank of yours we can flood with love and gratefulness? this is an amazing project and i'm impressed by your persistence!

here are a couple of my feature ideas (rather low priority!)

  • Filter multiple extensions at once like "--extension jpg,jpeg"
  • Filter extensions on a higher abstraction level like "--extensions photos videos"
  • Skip existing files
  • optional flat output folder structure /output/file.ext vs. /device/snapshot/domain/d1/d2/file.ext

most respectfully –
a vampire in the darkness :)

@horrorho
Copy link
Owner

Hi! Thanks for the feedback.

  1. Use extension without spaces to pass multiple values: --extension jpg jpeg. I'll update the --help to clarify this.
  2. Is on the to do list.
  3. Chunk data is cached. So files are re-constructed without the need to down the chunk data again. I've yet to reverse Data Protection checksums (I hate reversing code) so we just re-construct the file as we can't verify it's integrity.
  4. I'm holding off manipulating backups after retrieval as there are endless combinations that users might want. It's simpler to use your OS file manager or shell scripts to get the job done. The only option I do want is an iTunes style backup format as we have in iLoot.

@horrorho horrorho self-assigned this Jul 24, 2016
@onehit
Copy link

onehit commented Jul 25, 2016

horrorho,

Thanks for your work on this.
I'm getting an error when specifying a snapshot - it's copying to the temp directory but is not creating the correct folders in the cache directory so it is unable to copy them.

[ForkJoinPool-1-worker-1] �[31mWARN �[0;39m c.g.h.i.c.store.disk.DiskChunkStore - -- copy() - failed to write to temporary file: backups\xxxxxxxxxxx\temp\xxxxxxxxxxx.tmp chunk: backups\xxxxxxxxxxx\cache\8\1\4\xxxxxxxxxxx

[ForkJoinPool-1-worker-1] �[31mWARN �[0;39m c.g.h.i.c.engine.ChunkListDecrypters - -- copy() - failed to copy chunk data: xxxxxxxxxxx ex: {}

java.nio.file.NoSuchFileException: backups\xxxxxxxxxxx\temp\xxxxxxxxxxx.tmp -> backups\xxxxxxxxxxx\cache\8\1\4\xxxxxxxxxxx

If I create the cache\8\1\4 directory, the copy works

EDIT:
I was able to solve the problem by adding a createParent line in DiskChunkStore.java:

90 Optional write(Path to) throws IOException {
91 Path temp = tempFile(RETRY);
92 if (!DirectoryAssistant.createParent(temp)) {
93 return Optional.empty();
94 }
95 if (!DirectoryAssistant.createParent(to)) {
96 return Optional.empty();
97 }

98 HookOutputStream outputStream = new HookOutputStream(Files.newOutputStream(temp), hook(temp, to));
99 return Optional.of(outputStream);
100 }

@horrorho
Copy link
Owner

Thank you for the feedback and sorry! I stuffed up there quite badly. You've hit the nail on the head and I've already updated the working tree.

As you may have guessed, I was testing on a cached backup so I missed the bug.

@horrorho
Copy link
Owner

horrorho commented Jul 31, 2016

Issue resolved. Closing ticket!

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

3 participants