For the complete documentation index, see llms.txt. This page is also available as Markdown.

Scheduling backups and running manual backups

How to schedule backups and run backups manually.

Scheduling Backups

Please note:

Since Brain functionality will limited during a backup run (see What is unavailable during a a backup in the FAQ section above), it is recommended to schedule backups for the time when your environment is least busy.

To set a backup schedule for Sundays at 11:00PM:

backup schedule enable --hour 23 --weekday sunday

Example output:

Scheduled backups enabled on Sundays at 23:00, CDT.
External target upload is disabled.

Please Note:

The scheduled time is shown in the Brain's local time, but is stored in UTC time in the system. UTC time does not change with daylight savings time, so for the above example (CDT = UTC - 5), backups would happen at an hour earlier, at 22:00 CST during standard time (CST = UTC - 6).

To see the currently configured schedule:

show backup schedule

Example output:

Scheduled backups are enabled on Sundays at 23:00 CDT.
External target upload is disabled.

With the above schedule configuration, the backup will be local only. To enable upload to an external target (which must also be configured as shown in the Configuring External Targets section below), use the --enable-external-upload option as shown in the below example:

backup schedule enable --enable-external-upload

Disable it with --disable-external-upload:

Scheduled backups are disabled by default. If you enable them but later decide to disable them, scheduled backups may be disabled with the following command:

Running Backups Manually

To backup locally (even if you have external targets configured):

The output would look similar to this (the version and date is embedded in the file name):

migration just means the same thing as backup and is inconsequential.

To run a backup that includes external targets,remove the --local-only option as seen in the below example:

In this case a local backup was run and then a copy was uploaded to all configured external targets. If there were any failures, the output would show this.

Last updated

Was this helpful?