Backups

Backups are created by uploadBackup.js, run on the Strapi server on a daily basis. Running the script is accomplished via a Dokku cron job. To configure cron jobs on Dokku, please refer to the Dokku Scheduled Cron Tasks (opens in a new tab) documentation.

Upload files are uploaded to the Digital Ocean Spaces cnc space in the /backups directory.

Importing an backup file

As of Strapi 4.6, file imports can be done via:

npm run strapi import -- -f <file-path>

File names

Backup filenames are named with the following pattern:

export_YYYY-MM-DD-HHMMSS.tar.gz

Encryption

If the backup file ends in the .enc extension, it has been encrypted. Please ask another developer what the encryption key is, which can be supplied to the import command with the --key option.