Best practice for automated backups of Ghost content?

172 Views Asked by At

I'm setting up my first Ghost blog right now and trying to figure out: what is the best way to routinely backup my content using an automated script?

I see many posts online about how to manually backup the contents, and some scripts to do this. However, they all involve stopping the Node/Ghost processes while running a script to backup the database. Is there any way to do an automated backup without stopping Ghost?

1

There are 1 best solutions below

0
On

Unfortunately, right now you cannot automate the backup without shutting down Ghost. This is because it isn't smart to be copying the database while it could be being read/written to. A script that stops Ghost, makes a copy, and starts it back up would prob only ~1 second of down time, so if you have times that are slower, you could probably get away with it. If you can't, then just do the manual export for all the post data, and have a script backup all your images.