GhostBackupper

module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2024 License: MIT

README

GhostBackupper

Docker Image Size (latest by date) Docker Pulls Docker Image Version (latest by date) Go Report Card CodeFactor

Back up your Ghost CMS instance easily!

Demo

This tool can work in two modes:

  • CLI
  • Docker

CLI

"./ghostbackupper backup --db_host $DB_HOST --db_password $DB_PASSWORD --db_user $DB_USER --db_database $DB_DATABASE --db_port $DB_PORT --content $CONTENT --output $OUTPUT --mega_login $MEGA_LOGIN --mega_password $MEGA_PASSWORD"

Docker run

Use similarly as above. Official Docker reference here.

Docker Compose

Recommended Docker Compose configuration - everything in Docker

services:
  ghost:
    image: ghost:5-alpine
    restart: always
    ports:
      - 2368:2368
    environment:
      database__client: mysql
      database__connection__host: db
      database__connection__user: ghost-123
      database__connection__password: superpassword
      database__connection__database: ghost_prod
      url: https://example.com
    volumes:
      - /var/www/ghost/content:/var/lib/ghost/content

  db:
    image: mysql:8.0
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: evenmoresuperpassword
      MYSQL_DATABASE: ghost_prod
      MYSQL_PASSWORD: superpassword
      MYSQL_USER: ghost-123
    volumes:
      - /home/ubuntu/docker/db:/var/lib/mysql

  backupper:
    image: mrboombasticultra/ghostbackupper:latest
    restart: no
    environment:
      DB_HOST: db
      DB_PASSWORD: superpassword
      DB_DATABASE: ghost_prod
      DB_USER: ghost-123
      DB_PORT: 3306
      CONTENT: /var/www/ghost/content
      OUTPUT: backup.tar.gz
      MEGA_LOGIN: user@mail.com
      MEGA_PASSWORD: megapassword
    volumes:
      - /var/www/ghost/content:/var/www/ghost/content

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL