Directus Backup Endpoint
Custom Directus endpoint to backup Postgres database using pg_dump
and upload the .dump
file into Directus files.
Usage
Clone this project inside your /extensions/endpoints
folder, then:
cd directus-backup-endpoint/
yarn && yarn build
After activate the extension, you can just do
/POST <directus_url>/backup
and check it your .dump
file into Directus files
Configuration
You can choose which folder to upload the database .dump
file, just copy the .env.example
to your own .env
and set the DIRECTUS_BACKUPS_FOLDER
variable to a valid folder name of your Directus instance files.
For now, this extension supports only
local
as Directus storage