How to backup and restore Boost
Boost now supports both online and offline backups. The backup command will output a backup directory containing the following files.
metadata - contains backup of leveldb
metadata
boostd.db - backup of deals database
boostd.db
keystore - directory containing libp2p keys
keystore
token - API token
token
config - directory containing all config files and config.toml link
config
config.toml
storage.json - file containing storage details
storage.json
Backup does not back up deal logs and Local Index Directory.
You can take an online backup with the below command
boostd backup <backup directory>
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.
Shutdown boostd before taking a backup
boostd
Take a backup using the command line
Make sure that --boost-repo flag is set if you wish to restore to a custom location. Otherwise, it will be restored to ~/.boost directory
--boost-repo
~/.boost
Restore the boost repo using the command line
Last updated 2 years ago
boostd backup --offline <backup directory>
boostd restore <backup directory>