nimbus-eth2/docs/the_nimbus_book/src/database-backup.md

452 B

Back up your database

The best way to do this is to use .backup sqlite command:

  1. Navigate to either build/data/shared_mainnet_0/db/ (if you're running Holesky: shared_holesky_0) or the directory you supplied to the --data-dir argument when you launched Nimbus.

  2. Run the following command:

sqlite3 nbc.sqlite3 ".backup 'backup_nbc.sqlite3'"

Make sure to correctly type both single and double quotes, as written above.