threatpatrols / hibp-downloader

Efficiently download new pwned password hashes from api.pwnedpasswords.com fast
https://hibp-downloader.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
13 stars 3 forks source link

incremental backup #1

Closed capricornusx closed 5 months ago

capricornusx commented 5 months ago

Hi! Can I download the updated data into separate files? For example, the original database contained 100k hashes, in a month I will want to update. Where will new hashes be saved?

ndejong commented 5 months ago

The hibp-downloader tool does not download into a single file, although we provide a generate feature to create a single file if you'd really like one.

You might find it helpful to get a mental-model of how this tool works -

This way a re-run of the tool inside the TTL (12 hours) we do not generate unnecessary requests; and if the HIBP data chunk has changed then you'll get the update.

If you really want to do a diff between before and after, then you could use the generate feature to create the export files before and after.

ndejong commented 5 months ago

Closing this based on the positive emoji response - thanks