{"id":19431004,"url":"https://github.com/jmousqueton/ghost-backup","last_synced_at":"2025-07-14T16:34:48.589Z","repository":{"id":81454078,"uuid":"284500151","full_name":"JMousqueton/Ghost-Backup","owner":"JMousqueton","description":"Quick \u0026 dirty ghost backup script for selfhosted Ghost blog","archived":false,"fork":false,"pushed_at":"2020-08-08T22:03:53.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-30T03:04:20.458Z","etag":null,"topics":["backup","backup-script","ghost-blog","ghost-cms","ghostscript"],"latest_commit_sha":null,"homepage":"","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/JMousqueton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2020-08-02T16:34:58.000Z","updated_at":"2023-09-06T15:38:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"d34b9f7a-dd90-422d-a8ea-f541d4b9c109","html_url":"https://github.com/JMousqueton/Ghost-Backup","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JMousqueton/Ghost-Backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2FGhost-Backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2FGhost-Backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2FGhost-Backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2FGhost-Backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JMousqueton","download_url":"https://codeload.github.com/JMousqueton/Ghost-Backup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JMousqueton%2FGhost-Backup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265319494,"owners_count":23746361,"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","backup-script","ghost-blog","ghost-cms","ghostscript"],"created_at":"2024-11-10T14:27:53.620Z","updated_at":"2025-07-14T16:34:48.557Z","avatar_url":"https://github.com/JMousqueton.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to Ghost-Backup 👋\n![Version](https://img.shields.io/badge/version-1.0-blue.svg?cacheSeconds=2592000)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/JMousqueton/Ghost-Backup/blob/master/LICENSE)\n[![Twitter: JMousqueton](https://img.shields.io/twitter/follow/JMousqueton.svg?style=social)](https://twitter.com/JMousqueton)\n\n\u003e Script to backup your self hosted Ghost blog\n\n## Install\n\n```sh\ncurl https://github.com/JMousqueton/Ghost-Backup/blob/master/ghost-backup.sh -o ghost-backup.sh\nchmod u+x ghost-backup.sh\n```\n\n## 🛠️ Configuration\n\nEdit these variables :\n| Variable  | Description  |\n|---|---|\n| ghostUser | Your ghost admin login  |\n| ghostPassword | Your ghost admin password  |\n| ghostDatabase | Your ghost database name |\n| ghostDatabaseUser | Your ghost database user |\n| ghostDatabasePassword | Your ghost database password  |\n| ghostDomain | Your blog domain (ie https://www.example.com) |\n| ghostFolder | Your blog path |\n| backupName | Your backup file name  |\n| backupRetention | Backup retention in days |\n\nYour can find some information runing these commands (replace ```\u003cghost user\u003e``` with your ghost user):\n\n| Variable | Command |\n|---|---|\n| ghostDatabase | ```runuser -l \u003cghost user\u003e -c 'cd /var/www/ghost;ghost config get database.connection.database'```|\n| ghostDatabaseUser | ```runuser -l \u003cghost user\u003e -c 'cd /var/www/ghost;ghost config get database.connection.user'``` |\n| ghostDatabasePassword | ```runuser -l \u003cghost user\u003e -c 'cd /var/www/ghost;ghost config get database.connection.password'``` |\n| ghostDomain | ```runuser -l \u003cghost user\u003e -c 'cd /var/www/ghost;ghost config get url'```|\n\n## Usage\n\n```sh\n./backup-ghost.sh\n```\n\n## Author\n\n👤 **Julien Mousqueton**\n\n* Website: [https://www.julienmousqueton.fr](https://www.julienmousqueton.fr)\n* Twitter: [@JMousqueton](https://twitter.com/JMousqueton)\n* Github: [@JMousqueton](https://github.com/JMousqueton)\n* LinkedIn: [@julienmousqueton](https://linkedin.com/in/julienmousqueton)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\n\nFeel free to check [issues page](https://github.com/JMousqueton/Ghost-Backup/issues). You can also take a look at the [contributing guide](https://github.com/JMousqueton/Ghost-Backup/blob/master/CONTRIBUTING.md).\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n## 📝 License\n\nCopyright © 2020 [Julien Mousqueton](https://github.com/JMousqueton).\n\nThis project is [MIT](https://github.com/JMousqueton/Ghost-Backup/blob/master/LICENSE) licensed.\n\n***\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmousqueton%2Fghost-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmousqueton%2Fghost-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmousqueton%2Fghost-backup/lists"}