Miner metadata backup is very important

Miner metadata needs to be backed up frequently and can be restored in the event of a failure.
First create a folder for backup
mkdir -p ~/lotus-backups/210510
lotus-miner backup /root/lotus-backups/210510/backup.cbor
If it is not running:
lotus-miner backup --offline / root/lotus-backups/210510/backup.cbor
Backup configuration file:
cp ~/.lotusminer/config.toml ~/.lotusminer/storage.json /root/lotus-backups/210510
Restore:
lotus-miner init restore /root/ lotus-backups/210510/backup.cbor
restore configuration file:
cp lotus-backups/210510/config.toml lotus-backups/210510/storage.json .lotusminer
start miner:
lotus-miner run

Of course, you can also use inotifywait+rsync to realize real-time incremental backup, and you can also use scheduled tasks+rsync to realize backup at intervals of x hours.

Guess you like

Origin blog.csdn.net/yishui_hengyu/article/details/116588697