Git Product home page Git Product logo

Comments (4)

onehit avatar onehit commented on August 10, 2024 1

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 }

from inflatabledonkey.

horrorho avatar horrorho commented on August 10, 2024

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.

from inflatabledonkey.

horrorho avatar horrorho commented on August 10, 2024

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.

from inflatabledonkey.

horrorho avatar horrorho commented on August 10, 2024

Issue resolved. Closing ticket!

from inflatabledonkey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.