# PeriodicBackups

The Chainlink node database can be backed up automatically at regular time intervals. [Official Chainlink documentation](https://docs.chain.link/docs/configuration-variables/#database_backup_mode)

### \[ERROR] Invalid path for DATABASE\_BACKUP\_DIR - please set it to a valid directory path

* Make sure an existing directory path is used
* Default: Chainlink root directory

### \[ERROR] Database backup frequency is too small. Please set it to at least

* Set a positive regular time interval (at least 1m) for dumping the database
* Examples with valid time unit (e.g. „m“, „h“): `DATABASE_BACKUP_FREQUENCY=7h`

### \[ERROR] DatabaseBackup: Failed

* Make sure a valid directory path is used
* Make sure there is enough disk space for storing the backup file


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.oraclelabs.link/technical/chainlink-node-logs/periodicbackups.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
