Script to save ghost Website =>
- Dump MySQL database of ghost
- Copy the Folder of Ghost CMS App (/var/www/ghost)
- Make an archive
- Check If error
To execute login in root don't forget to insert your password in variable sqlpass= For Example :
sqlpass="IamSup3rP@$$"
Do not put the root password for security ! Put the password of user dedicated for the database ;) Check your database name, by default in the script is "ghost"
For execute -> chmod 700 backupghost.sh ./backupghost.sh
Good Backup and Enjoy :)