https://github.com/jmousqueton/ghost-backup
Quick & dirty ghost backup script for selfhosted Ghost blog
https://github.com/jmousqueton/ghost-backup
backup backup-script ghost-blog ghost-cms ghostscript
Last synced: 11 months ago
JSON representation
Quick & dirty ghost backup script for selfhosted Ghost blog
- Host: GitHub
- URL: https://github.com/jmousqueton/ghost-backup
- Owner: JMousqueton
- License: mit
- Created: 2020-08-02T16:34:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-08T22:03:53.000Z (almost 6 years ago)
- Last Synced: 2025-05-30T03:04:20.458Z (12 months ago)
- Topics: backup, backup-script, ghost-blog, ghost-cms, ghostscript
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Welcome to Ghost-Backup 👋

[](https://github.com/JMousqueton/Ghost-Backup/blob/master/LICENSE)
[](https://twitter.com/JMousqueton)
> Script to backup your self hosted Ghost blog
## Install
```sh
curl https://github.com/JMousqueton/Ghost-Backup/blob/master/ghost-backup.sh -o ghost-backup.sh
chmod u+x ghost-backup.sh
```
## 🛠️ Configuration
Edit these variables :
| Variable | Description |
|---|---|
| ghostUser | Your ghost admin login |
| ghostPassword | Your ghost admin password |
| ghostDatabase | Your ghost database name |
| ghostDatabaseUser | Your ghost database user |
| ghostDatabasePassword | Your ghost database password |
| ghostDomain | Your blog domain (ie https://www.example.com) |
| ghostFolder | Your blog path |
| backupName | Your backup file name |
| backupRetention | Backup retention in days |
Your can find some information runing these commands (replace `````` with your ghost user):
| Variable | Command |
|---|---|
| ghostDatabase | ```runuser -l -c 'cd /var/www/ghost;ghost config get database.connection.database'```|
| ghostDatabaseUser | ```runuser -l -c 'cd /var/www/ghost;ghost config get database.connection.user'``` |
| ghostDatabasePassword | ```runuser -l -c 'cd /var/www/ghost;ghost config get database.connection.password'``` |
| ghostDomain | ```runuser -l -c 'cd /var/www/ghost;ghost config get url'```|
## Usage
```sh
./backup-ghost.sh
```
## Author
👤 **Julien Mousqueton**
* Website: [https://www.julienmousqueton.fr](https://www.julienmousqueton.fr)
* Twitter: [@JMousqueton](https://twitter.com/JMousqueton)
* Github: [@JMousqueton](https://github.com/JMousqueton)
* LinkedIn: [@julienmousqueton](https://linkedin.com/in/julienmousqueton)
## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel 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).
## Show your support
Give a ⭐️ if this project helped you!
## 📝 License
Copyright © 2020 [Julien Mousqueton](https://github.com/JMousqueton).
This project is [MIT](https://github.com/JMousqueton/Ghost-Backup/blob/master/LICENSE) licensed.
***
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_