Custom endpoint to backup the PG database and upload the `.dump` to Directus.

Overview

Directus Backup Endpoint


35190391-removebg-preview

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

You might also like...

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

Oct 19, 2022

An Obsidian plugin to upload your notes' metadata to your database.

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

Dec 19, 2022

A modern ebook manager and reader with sync and backup capacities for Windows, macOS, Linux and Web

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

Dec 29, 2022

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
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
O projeto MKS Sistemas tem como objetivo o desenvolvimento de uma aplicação em React que utilize endpoint da API de produtos fornecida pela própria MKS Sistemas.

MKS front-end Descrição O projeto MKS Sistemas tem como objetivo o desenvolvimento de uma aplicação em React que utilize endpoint da API de produtos f

Rodrigo William 4 Jul 21, 2022
A button to POST an emoji to an endpoint.

<open-heart> A button for the Open Heart Protocol. ?? Highly experimental. Tag a version to avoid unexpected changes. Usage <!-- Include `OpenHeartEle

ddddddddʣzzz 20 Nov 3, 2022
View a GCP project's API/service endpoint configurations.

GCP Service Observer This is an application that displays GCP Service/API endpoint information for a given project. GCP requires API endpoints to be e

Jason Dyke 9 Dec 28, 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