Backup and Restore
How to backup and restore Boost
Backup
Boost now supports both online and offline backups. The backup command will output a backup directory containing the following files.
metadata
- contains backup of leveldbboostd.db
- backup of deals databasekeystore
- directory containing libp2p keystoken
- API tokenconfig
- directory containing all config files andconfig.toml
linkstorage.json
- file containing storage details
Backup does not backs up the deal logs and dagstore.
Online backup
You can take an online backup with the below command
The online backup supports running only one instance at a time and you might see a locking error if another instance of backup is already running.
Offline backup
Shutdown
boostd
before taking a backupTake a backup using the command line
Boost offline backup does not include Dagstore and user can copy dagstore directory to a backup location manually. Dagstore can be reinitialized if there is no backup.
Restore
Make sure that
--boost-repo
flag is set if you wish to restore to a custom location. Otherwise, it will be restored to~/.boost
directoryRestore the boost repo using the command line
Once restore is complete, Dagstore can be manually copied inside the boost repo to restore it.
Last updated