Custom operation to backup the PG database and upload the .dump to Directus.

Overview

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

You might also like...

Docker Extension to backup and restore docker volumes.

Docker Extension to backup and restore docker volumes.

vackup-docker-extension This repository contains a Docker Extension that backups Docker volumes. This extension is purely a demonstration of how it'd

Dec 28, 2022

A GUI to browse and restore restic backup repositories.

A GUI to browse and restore restic backup repositories.

A simple, cross-platform restic backup GUI for browsing and restoring restic repositories. Built with Wails2, based on leaanthony's Restoric PoC. Down

Dec 29, 2022

Backup of faker.js source code.

This is mirrored project from faker.js. This is created because it seemed to have been hacked. faker.js - generate massive amounts of fake data in the

Jan 8, 2022

It is automatic mongodb data backup with cronjob.

It is automatic mongodb data backup with cronjob.

Do you need my help? Visit our Discord server. Installation npm i mongoose-backup --save yarn add mongoose-backup Guide const MongoBackuper = require(

Aug 8, 2022

logseq custom.js and custom.css utilities : resize query table columns, hide namespaces...

logseq custom.js and custom.css utilities : resize query table columns, hide namespaces...

logseq-custom-files custom.js and custom.css utilities for Logseq. current version v20220331 query table view : add handles on the query table headers

Dec 7, 2022

Ready to manipulate partitions file? Create a custom partition, apply custom security system, hide the partition and share your hidden data on the www

Ready to manipulate partitions file? Create a custom partition, apply custom security system, hide the partition and share your hidden data on the www

Paranoia 💊 Ready to manipulate partitions file? Create a custom partition, apply custom security system, hide the partition and share your hidden dat

Dec 29, 2022

Custom navigations for Solid written in Typescript. Implement custom page transition logic and ✨ animations ✨

solid-custom-navigation Get, Set, Go! Custom navigations for Solid, written in Typescript. Implement custom page transition logic and ✨ animations ✨ .

Nov 27, 2022

Create Bootstrap 5 Modal Box using JavaScript with custom title, description, button labels and custom YES button callback

Create Bootstrap 5 Modal Box using JavaScript with custom title, description, button labels and custom YES button callback

Dynamic BS5 Modal Box Create Bootstrap 5 Modal Box using JavaScript with custom title, description, button labels and custom YES button callback Insta

Oct 23, 2022

Interplanetary Database: A Database built on top of IPFS and made immutable using Ethereum blockchain.

IPDB IPDB (Interplanetary Database) is a key/value store database built on top of IPFS (Interplanetary File System). Project is intended to be an MVP

Oct 6, 2022
Comments
  • fix: spawn pg_dump child process

    fix: spawn pg_dump child process

    Using @getvim/execute we can't spawn the process inside docker containers. This commit replaces the lib and uses node child_process to spawn pg_dump command.

    Closes #3

    hacktoberfest-accepted 
    opened by Guiqft 0
  • Running in docker

    Running in docker

    Currently we cant runner inside docker container running Directus image bc the "@getvim/execute" lib tries to spawn bin/bash and container only has bin/sh

    opened by Guiqft 0
Owner
Guilherme Oliveira
Computer Engineering student at the Federal University of São Carlos (UFSCar). Currently working as Software Engineer for Luizalabs :)
Guilherme Oliveira
Tools for Dump NUXT JS Environment Config Through Browser Window Object

Introduction Nuxt JS is an open source javascript framework making web development simple and powerful. This tool is used to get environment configura

Agus Setya R 7 Sep 5, 2022
Dump of a 5 day small scale data scraping project on the io game "arras.io"

Arras DB A bot built to scan all arras.io game servers (besides sandbox) in search of bulk server and player data. This bot was run 5 days straight, a

ABC 3 Jul 19, 2022
Upload or Upload & Publish your bundle (apk or aab) to Huawei AppGallery with ConnectApi

appgallery-publisher Upload/Publish your bundle (apk or aab) to AppGallery automatically with appgallery-publisher Usage Single Javascript File Bash F

Mustafa Yiğit 17 Sep 19, 2022
Kuldeep 2 Jun 21, 2022
Directus Hook Extension: Version Control Changelog

A Directus hook extension to push user written change summaries (from a singleton collection text field) to a changelog in a VCS server

BIX Digital Lab 11 Nov 27, 2022
Directus dataprovider package for refine.

refine-directus Directus dataprovider package for refine. About refine offers lots of out-of-the box functionality for rapid development, without comp

Vivek Palanisamy 15 Dec 27, 2022
The official Directus SDK for use in JavaScript!

Directus JS SDK Installation npm install @directus/sdk Basic Usage import { Directus } from '@directus/sdk'; const directus = new Directus('http://d

Directus 36 Dec 29, 2022
An extension to get randomized results from directus.

Directus Extension Randomized Results As the name suggests this extension will enable Randomized results mirroring the Directus /items/:collection end

Brainslug 4 Oct 19, 2022
An Obsidian plugin to upload your notes' metadata to your database.

Obsidian + PostgreSQL = ❤️ An Obsidian plugin to upload your notes' metadata to your database. Features send the Dataview annotations of a page to a P

Camille Louédoc-Eyriès 33 Dec 19, 2022
A modern ebook manager and reader with sync and backup capacities for Windows, macOS, Linux and Web

简体中文 | English Koodo Reader A cross-platform ebook reader Download | Preview | Roadmap | Document Preview Feature Format support: EPUB (.epub) Scanned

Troye Guo 8.6k Dec 29, 2022