Discussion:
[s3ql] Can I get the sha256 value for a file stored with s3ql without downloading it?
Andrei
2018-06-29 14:32:36 UTC
Permalink
Hi,

Can I get the sha256 value for a file stored with s3ql without downloading
it? (Maybe with one of the utilities functions or maybe by connecting to
the sqlite db?)


Thanks,

Andrei
--
You received this message because you are subscribed to the Google Groups "s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s3ql+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nikolaus Rath
2018-06-29 15:16:24 UTC
Permalink
Post by Andrei
Hi,
Can I get the sha256 value for a file stored with s3ql without downloading
it? (Maybe with one of the utilities functions or maybe by connecting to
the sqlite db?)
Nope. S3QL only stores SHA values per block. To look at those, you could
use the sqlite CLI to look at the database. There is no convenient
utility for that.


Best,
-Nikolaus
--
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

»Time flies like an arrow, fruit flies like a Banana.«
--
You received this message because you are subscribed to the Google Groups "s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s3ql+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Andrei
2018-06-29 17:35:48 UTC
Permalink
Thanks. May be a good idea for a feature. We could then check whether our
local files have not been corrupted, without downloading the files from
where they are stored on s3ql (and incur download/transfer fees).
--
You received this message because you are subscribed to the Google Groups "s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s3ql+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Nikolaus Rath
2018-06-29 18:55:53 UTC
Permalink
Post by Andrei
Thanks. May be a good idea for a feature. We could then check whether our
local files have not been corrupted, without downloading the files from
where they are stored on s3ql (and incur download/transfer fees).
For that purpose, you could also just run sha256sum > SHA256SUM before copying the files
:-).

Best,
-Nikolaus
--
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

»Time flies like an arrow, fruit flies like a Banana.«
--
You received this message because you are subscribed to the Google Groups "s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s3ql+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
William Blunn
2018-07-02 06:50:54 UTC
Permalink
It's fundamentally impossible.

s3ql provides a filesystem with POSIX semantics --- it is not an object
store.

I can open a file, seek to any offset, and write one byte. If there was a
byte at that offset that was different to what I just wrote, or I wrote off
the end of the file, then the digest of the file will then change in a way
which can only be found by digesting the whole file.

Regards,

Bill
Post by Andrei
Thanks. May be a good idea for a feature. We could then check whether our
local files have not been corrupted, without downloading the files from
where they are stored on s3ql (and incur download/transfer fees).
--
You received this message because you are subscribed to the Google Groups "s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s3ql+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...