{"id":20597445,"url":"https://github.com/loveduckie/sspak-docker","last_synced_at":"2025-03-06T15:20:22.545Z","repository":{"id":150369432,"uuid":"384218562","full_name":"LoveDuckie/sspak-docker","owner":"LoveDuckie","description":"A Docker container image for capturing or restoring backups of Silverstripe installations using SSPak.","archived":false,"fork":false,"pushed_at":"2022-10-30T20:18:36.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-17T01:09:04.552Z","etag":null,"topics":["alpine-linux","backup","docker","dockerfile","silverstripe","silverstripe-4","silverstripe-backup"],"latest_commit_sha":null,"homepage":"https://lucshelton.com/projects/personal/silverstripe-docker-backup","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LoveDuckie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-08T18:41:49.000Z","updated_at":"2022-11-03T11:09:38.000Z","dependencies_parsed_at":"2023-04-26T02:18:15.948Z","dependency_job_id":null,"html_url":"https://github.com/LoveDuckie/sspak-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoveDuckie%2Fsspak-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoveDuckie%2Fsspak-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoveDuckie%2Fsspak-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoveDuckie%2Fsspak-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LoveDuckie","download_url":"https://codeload.github.com/LoveDuckie/sspak-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242231442,"owners_count":20093636,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine-linux","backup","docker","dockerfile","silverstripe","silverstripe-4","silverstripe-backup"],"created_at":"2024-11-16T08:22:31.416Z","updated_at":"2025-03-06T15:20:22.521Z","avatar_url":"https://github.com/LoveDuckie.png","language":"Shell","readme":"# SSPak Docker\n\nA Docker container image for capturing or restoring backups of Silverstripe installations using SSPAK.\n\n[Read more about this repository here.](https://lucshelton.com/blog/backing-up-silverstripe-in-docker)\n\n## Run\n\n```bash\n#!/bin/bash\ndocker run --rm -i portfolio/sspak-docker:development /bin/bash\n```\n\n## Purpose\n\nConveniently capture and restore backups of a [SilverStripe](https://silverstripe.org/) 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](https://silverstripe.org/) team that can capture the contents of the database, and website's upload `/public/assets/Uploads` directory, so that it can be conveniently restored.\n\n- Keeps a maximum of 5 backups.\n- Timestamps each backup.\n- Updates the `latest.tgz` archive with the latest on each backup.\n- Enables for remote restoration and capturing of backups if `docker --context` is configured.\n\n## Guide\n\nA few explanations on how to use this.\n\n### Configuration\n\n- `BACKUPS_PATH`\n  - The root path within the container for capturing backups\n\n### Restoring Backups\n\nBackups can be restored manually to either a remote or the default/local Docker context.\n\n```shell\n#!/bin/bash\nsspak-docker.sh -o restore\n```\n\n```bash\n#!/bin/bash\nsspak-docker.sh -o restore\n```\n\n### Capturing Backups\n\nBackups can be manually captured when there is a running instance of SilverStripe, and the supporting SQL database server.\n\n```bash\nsspak-docker.sh -o backup\n```\n\n### Scheduled Backups\n\nThis Docker image supports the ability to schedule backups using CRON jobs that are configured inside the container. The container makes use of Alpine Linux.\n\n## Special Thanks\n\n[Thanks to this particular GitHub repository for the inspiration.](https://github.com/databacker/mysql-backup)\n\n## Links\n\nFind below some relevant links.\n\n- **SSPak**\n  - The official repository for the tool that this Docker image uses.\n  - [GitHub Repository](https://github.com/silverstripe/sspak)\n- **Blog**\n  - An article explaining what this Docker image does, and how to use it.\n  - [Docker SilverStripe Backup](https://lucshelton.com/projects/personal/silverstripe-tool-docker-backup/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floveduckie%2Fsspak-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floveduckie%2Fsspak-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floveduckie%2Fsspak-docker/lists"}