Hello!
I know this question has come up before, but I haven’t quite understood the answers in other threads.
I’m currently running my Ghost blog via Docker (Portainer), and the command ghost backup doesn’t work because the port in Portainer is set to 2368. When you try to use it via Synology or the Portainer console, it creates a conflict and causes issues when trying to start a backup (Port 2368 is already in use by another program).
So the question is, how do I make a backup of the Ghost installation via Portainer or SSH in the simplest way? The dream would be to make a backup via SSH and download it to my computer or a Synology folder.
Kind regards
Nicklas
There are two parts to Ghost installs, the app itself and your data. I’ll presume you are only concerned about backing up your blog data here and not the Ghost software itself-- which can be re-installed, or the server itself.
Your Ghost is in two parts: the part on the filesystem and the part in a MySQL database. I presume when you run Ghost in a container you are mounting your data volume that it uses from the host. You can back this up however would normally back up data on your host.
I use Restic to backup to BackBlaze.
Another option would be rsnapshot, which could run on your laptop and periodically sync there.
Don’t neglect the contents of your backup software.You can follow a common pattern to backup your MySQL database to a file on your filesystem and then have them included in whatever backup you automate with a tool like Restic or Rsnapshot.