mirror of
https://github.com/pi-hole/docs.git
synced 2026-02-15 07:26:03 +00:00
Add backup instructions for long-term database. As we utilize the online backup functionality of SQLite3, a backup can be generated without having to stop/restart pihole-FTL, i.e., without interruption of DNS service.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -13,6 +13,12 @@ sudo service pihole-FTL start
|
||||
```
|
||||
Note that DNS resolution will not be available as long as `pihole-FTL` is stopped.
|
||||
|
||||
The database can be backed up while FTL is running when using the SQLite3 Online backup method, e.g.,
|
||||
```
|
||||
sqlite3 /etc/pihole/pihole-FTL.db ".backup /home/pi/pihole-FTL.db.backup"
|
||||
```
|
||||
will create `/home/pi/pihole-FTL.db.backup` which is a copy of your long-term database.
|
||||
|
||||
Another way of controlling the size of the long-term database is setting a maximum age for log queries to keep using the config parameter [`MAXDBDAYS`](configfile.md#maxdbdays). It defaults to 365 days, i.e. queries that are older than one year get periodically removed to limit the growth of the long-term database file.
|
||||
|
||||
The config parameter [`DBIMPORT`](configfile.md#dbimport) controls whether `FTL` loads information from the database on startup. It need to do this to populate the internal datastructure with the most recent history. However, as importing from the database on disk can delay FTL on very large deploys, it can be disabled using this option.
|
||||
|
||||
Reference in New Issue
Block a user