{"id":17694787,"url":"https://github.com/ngshiheng/wraith","last_synced_at":"2025-04-15T06:56:13.839Z","repository":{"id":47897390,"uuid":"516374162","full_name":"ngshiheng/wraith","owner":"ngshiheng","description":"A simple utility Bash script to backup Ghost publishing platform","archived":false,"fork":false,"pushed_at":"2024-05-26T03:38:01.000Z","size":393,"stargazers_count":38,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T06:55:59.064Z","etag":null,"topics":["backup","bash","ghost","shell"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ngshiheng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":["ngshiheng"]}},"created_at":"2022-07-21T13:03:53.000Z","updated_at":"2025-01-28T22:20:23.000Z","dependencies_parsed_at":"2024-10-24T16:49:10.359Z","dependency_job_id":"0a2edc65-15ed-4429-a24c-79b742bb10ca","html_url":"https://github.com/ngshiheng/wraith","commit_stats":{"total_commits":50,"total_committers":1,"mean_commits":50.0,"dds":0.0,"last_synced_commit":"790afd7c9979e1b566c96413d97be5f51d7946fd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngshiheng%2Fwraith","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngshiheng%2Fwraith/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngshiheng%2Fwraith/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngshiheng%2Fwraith/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngshiheng","download_url":"https://codeload.github.com/ngshiheng/wraith/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249023713,"owners_count":21199958,"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":["backup","bash","ghost","shell"],"created_at":"2024-10-24T13:49:43.702Z","updated_at":"2025-04-15T06:56:13.816Z","avatar_url":"https://github.com/ngshiheng.png","language":"Shell","funding_links":["https://github.com/sponsors/ngshiheng"],"categories":[],"sub_categories":[],"readme":"# Wraith\n\n[![shellcheck](https://github.com/ngshiheng/wraith/actions/workflows/shellcheck.yml/badge.svg)](https://github.com/ngshiheng/wraith/actions/workflows/shellcheck.yml)\n\nA simple utility Bash script to backup [Ghost](https://github.com/TryGhost/Ghost) publishing platform. This script enables Ghost users to quickly and easily back up their entire platform, including the MySQL database.\n\n## Context\n\nGetting started with Ghost is easy. You would pick between:\n\n-   [Managed](https://ghost.org/pricing/) service\n-   Self-hosted on a [VPS](https://marketplace.digitalocean.com/apps/ghost) or serverless platform like [Railway](https://blog.railway.app/p/ghost)\n\nUsing managed version will most likely save you a bunch of headaches (and time) that come along with self-hosting any other sites:\n\n-   Backups\n-   Maintenance\n-   Downtime recovery\n-   Security, etc.\n\nIn short, you’d sleep easy at night while they stay awake.\n\nHaving that said, if you want to take on the challenge of self-hosting your own Ghost site, here's a tiny script to help with your backups.\n\n[Read more...](https://jerrynsh.com/backing-up-ghost-blog-in-5-steps/)\n\n## Table of Contents\n\n- [Wraith](#wraith)\n  - [Context](#context)\n  - [Table of Contents](#table-of-contents)\n  - [Flowchart](#flowchart)\n  - [Requirements](#requirements)\n  - [Usage](#usage)\n  - [FAQ](#faq)\n  - [Contributing](#contributing)\n  - [License](#license)\n\n## Flowchart\n\n```mermaid\ngraph LR\n  1([\"start\"]) --\u003e 2[\"run checks\"] --\u003e 3[\"clean up\"] --\u003e 4[\"run `ghost backup`\"] --\u003e 5[\"run `mysqldump`\"] --\u003e 6[\"run `rclone` to sync backup to cloud storage\"] --\u003e 7[\"clean up\"] --\u003e 8([\"end\"])\n```\n\n## Requirements\n\n\u003e 💡 Tip: run `make check` to check if all requirements are installed.\n\nA list of CLI required to be installed:\n\n-   [`expect`](https://manpages.ubuntu.com/manpages/impish/man1/expect.1.html)\n-   [`ghost`](https://ghost.org/docs/ghost-cli/)\n-   [`gzip`](https://www.gnu.org/software/gzip/)\n-   [`mysql`](https://www.mysql.com/)\n-   [`rclone`](https://rclone.org/install/)\n\n## Usage\n\n\u003e 💡 Tip: run `make help` to display help message.\n\u003e\n\u003e Check out the [Makefile](./Makefile)\n\n1. Access your Virtual Private Server (VPS) where your Ghost site is hosted\n2. Utilize the `sudo -i -u ghost-mgr` command to switch to the `ghost-mgr` user, which is responsible for managing Ghost\n3. Clone the repository onto the VPS\n4. Run `make setup` and update the `email` and `password` field in `wraith.exp`\n5. Optional: Run `make backup` to run backup manually\n\n## FAQ\n\nSee [FAQ.md](docs/FAQ.md).\n\n## Contributing\n\nSee [CONTRIBUTING.md](docs/CONTRIBUTING.md).\n\n## License\n\nSee [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngshiheng%2Fwraith","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngshiheng%2Fwraith","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngshiheng%2Fwraith/lists"}