Skip to content

A Docker container image for capturing or restoring backups of Silverstripe installations using SSPak.

License

Notifications You must be signed in to change notification settings

LoveDuckie/sspak-docker

Repository files navigation

SSPak Docker

A Docker container image for capturing or restoring backups of Silverstripe installations using SSPAK.

Read more about this repository here.

Run

#!/bin/bash
docker run --rm -i portfolio/sspak-docker:development /bin/bash

Purpose

Conveniently capture and restore backups of a SilverStripe installation that are timestamped and kept organized at a path mounted inside of a container. This Docker image utilizes sspak, a command-line tool developed by the SilverStripe team that can capture the contents of the database, and website's upload /public/assets/Uploads directory, so that it can be conveniently restored.

  • Keeps a maximum of 5 backups.
  • Timestamps each backup.
  • Updates the latest.tgz archive with the latest on each backup.
  • Enables for remote restoration and capturing of backups if docker --context is configured.

Guide

A few explanations on how to use this.

Configuration

  • BACKUPS_PATH
    • The root path within the container for capturing backups

Restoring Backups

Backups can be restored manually to either a remote or the default/local Docker context.

#!/bin/bash
sspak-docker.sh -o restore
#!/bin/bash
sspak-docker.sh -o restore

Capturing Backups

Backups can be manually captured when there is a running instance of SilverStripe, and the supporting SQL database server.

sspak-docker.sh -o backup

Scheduled Backups

This Docker image supports the ability to schedule backups using CRON jobs that are configured inside the container. The container makes use of Alpine Linux.

Special Thanks

Thanks to this particular GitHub repository for the inspiration.

Links

Find below some relevant links.

Releases

No releases published

Packages

No packages published

Languages