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

14 lines
450 B
Markdown
Raw Normal View History

# Back up your database
2023-04-28 00:30:58 +03:00
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 Prater: `shared_prater_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.