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

14 lines
452 B
Markdown
Raw Normal View History

# Back up your database
2023-04-27 21:30:58 +00:00
The best way to do this is to use `.backup` sqlite command:
2023-09-28 10:35:42 +00:00
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.
2023-04-27 21:30:58 +00:00
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.