How to automatically backup ghost?


#1

In order to prevent data loss, I want to automatically back up my ghost blog, what should I do? Who can tell me? Thank you very much!


#2

There are several ways to do this, depending on your hosting ecosystem (as Ghost doesn’t have an included functionality that backs up your site):

  • you use the hosting backup features (in CPanel or the hosting admin panel)
  • you do it manually (if you run your site on a VPS you manage) via bash scripts (if on Linux)
  • probably there are other ways (again, depending on your hosting ecosystem)

#3

@betterswifter I’m working on a backup command for Ghost-Cli, hopefully sending the PR tonite or tomorrow :smile: for now you’ve to perform it by your own script/process.


#4

@Tony @dsecareanu OK,Thanks!


#5

At the moment, I run a cron every 4 hours that compress the whole ghost/content DIR
The script then encrypt and upload the file to backblaze B2.

Having a CLI command to backup to DB would be neat!

Cheers!


#6

Tony, what’s the PR?


#7

@pascalandy I’ve not finished yet until this night, here is it: https://github.com/TryGhost/Ghost-CLI/pull/842

cc @John this might be interesting for you as well


#8

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.