Skip to content

Instantly share code, notes, and snippets.

View sebasgoldberg's full-sized avatar

Juan Sebastian Goldberg sebasgoldberg

View GitHub Profile
@sebasgoldberg
sebasgoldberg / avalanche-db-backup.md
Last active September 3, 2022 12:20
Avalanche database backup and restore

backup

sudo apt install pbzip2

systemctl stop avalanchego.service

cd ~/.avalanchego/db/mainnet/v1.4.5/
tar cvf - --use-compress-prog=pbzip2 . | split --suffix-length=4 --bytes=500MB - /mnt/backup/avalanche/db/avalanche.db.tar.bz2.