https://github.com/digital-botanical-gardens-initiative/directus-backup

Backup scripts for directus

https://github.com/digital-botanical-gardens-initiative/directus-backup

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.4%) to scientific vocabulary
Last synced: 5 months ago · JSON representation

Repository

Backup scripts for directus

Basic Info
  • Host: GitHub
  • Owner: digital-botanical-gardens-initiative
  • License: gpl-3.0
  • Language: Shell
  • Default Branch: main
  • Size: 16.6 KB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.md

Directus backup scripts

This repository contains scripts to backup and restore Directus-prod instance.

Prerequisites

Having a running Directus instance

Setup

1. Clone the repository to your local machine:

bash git clone https://github.com/digital-botanical-gardens-initiative/directus-backup.git cd directus-backup

2. Create a .env file in the root folder and edit it to suit your needs:

bash cp .env.example .env vim .env

3. Run scripts manually:

  • Making short term backups:

sh ./directus_bckp_short_term_script.sh

  • Making long term backups:

sh ./directus_bckp_long_term_script.sh

  • Restoring a backup:

sh ./directus_restore_script.sh </path/to/backup/folder> <backup timestamp in format YYYYMMDDHHMMSS>

4. Run scripts in cronjob (only backups):

  • Open cronjobs file:

sh crontab -e

  • Add cronjobs:

For example to run the short term backups every 2 hours: sh 0 */2 * * * /path/to/short/term/script/directus_bckp_short_term_script.sh

For example to run the long term backups every sunday at 1 AM: sh 0 1 * * 0 /path/to/long/term/script/directus_bckp_long_term_script.sh

Contributing

If you would like to contribute to this project or report issues, please follow our contribution guidelines.

License

see LICENSE for details.

Owner

  • Name: The Digital Botanical Garden Initiative
  • Login: digital-botanical-gardens-initiative
  • Kind: organization

GitHub Events

Total
  • Push event: 12
  • Create event: 2
Last Year
  • Push event: 12
  • Create event: 2