tmobile / sawtooth-next-directory

Home for NEXT Directory - Powered by Hyperledger Sawtooth. Chat with the team at https://chat.hyperledger.org/channel/sawtooth-next-directory/
Apache License 2.0
11 stars 7 forks source link

Backup job for Sawtooth Transactions #649

Open jbobo opened 5 years ago

jbobo commented 5 years ago
User Story Backup job for Sawtooth transactions.
User Story Title Backup job for Sawtooth transactions.
T-shirt size: M
User Story "Back up Sawtooth transactions for disaster recovery."
Description Write a script to be run daily to backup all sawtooth transactions in external storage for disaster recovery
Requirements Add a script and ephemeral microservice that runs daily and backs up all pack sawtooth transactions to be stored externally. Pack data must be retrievable and in a format that is (ideally) easily/quickly reloaded into sawtooth.
Acceptance Criteria/Tests No tests needed for this feature. Deliverable must include a new executable to backup sawtooth transactions, documentation for the output format, and a method to repeatedly run the script on a schedule.

tip: block store, transaction receipt and global state are stored in /var/lib/sawtooth/ directory, keys generated for the Sawtooth validator are stored in /etc/sawtooth/keys/ directory.