Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.26 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.26 KB

Directus Backup Operation


35190391-removebg-preview

Custom Directus operation to backup Postgres database using pg_dump and upload the .dump file into Directus storage.

Prerequisites

Make sure you have installed the following prerequisites on your Directus machine.

  • PostgreSQL Client - Install PSQL. Needs to be installed so Node can spawn pg_dump process. If running in Docker, you can check this example repo.

Usage

Clone this project inside your /extensions/operations folder, then:

cd directus-backup-operation/
yarn && yarn build

After activate the extension, you can create a new Directus flow and choose how to trigger the database backup 🚀

Configuration

You can choose which folder to upload the database .dump file, just type the folder name on operation register. Make sure to type a valid folder name on your Directus storage.

For now, this extension supports only local as Directus storage