epoch-archive-mainnet
Welcome to the Epoch Archive Backup & Restore guide. This README is designed to provide a comprehensive walkthrough to manage 0l Network node backups and restoration for your system using the provided Makefile.
- Ensure you have the necessary tools installed, such as the latest
- The Makefile is designed for libra-framework v6.9.x (soon v7) Ensure you are using the correct version.
Clone the repo and prepare the binary:
cd ~
git clone https://github.com/0LNetworkCommunity/epoch-archive-mainnet
cd ~/epoch-archive-mainnet
make bins
cd ~/epoch-archive-mainnet
make restore-all
-
Wipe Existing Database:
make wipe-db
-
Restore Genesis Data:
make restore-genesis
-
Restore to a Specific Version:
make VERSION_START=[db_starting_transaction] VERSION=[db_target_transaction] restore-latest
-
Prepare Archive Path:
make prep-archive-path
-
Backup Genesis Data:
make backup-genesis
-
Continuous Backup:
make backup-continuous
-
Backup by Epoch:
make backup-epoch
-
Backup State Snapshot:
make backup-snapshot
-
Backup Transactions:
make backup-transaction
-
Setup Git for Backup:
make git-setup
-
Start Continuous Backup:
make start-continuous
-
Stop Continuous Backup:
make stop-continuous
-
Backup Logging Cleanup:
make log-cleanup
-
Scheduled Tasks: This is what we use to continually provide public backups as they become available:
make cron
make check
: Validates the environment and displays the configuration.make wipe-backups
: Deletes all backups.make git
: Commits and pushes the recent backups to the repository.make git-sling-recent
: Commits and pushes the 20 most recent backups to the repository.make git-sling-all
: Commits and pushes all backups to the repository in batches.
Your contributions are always welcome! Feel free to improve on any of the command explanations or add more clarity as needed.