Ghost backup problem

When I run ghost backup I get the following error:

:heavy_multiplication_x: Backing up site
An error occurred.
Message: ‘Response code 301 (Moved Permanently)’

Here is my current config:

OS: Ubuntu, v18.04.4 LTS
Node Version: v16.17.0
Ghost Version: 5.13.0
Ghost-CLI Version: 1.23.1
Environment: production
Command: ‘ghost backup’

Ghost Backup requires access to your Ghost site, specifically the Admin API. The 301 error suggests that it’s trying to reach it but getting a redirect :thinking:

How do you have your domain set up?

Where can I check the domain setup?

There are a couple of parts to this.

Is your Ghost site live and working as expected?

To see your configured URL, you can run this command: ghost config url

The other side is how is your DNS set up? Are you using Namecheap, Google Domains, etc.? Do you have any proxies or redirects set up?

Thanks.

Site is on Digital Ocean. Ghost doctor says everything is fine and the site is and has been live.

Recently I had some problems with Mailgun not working so I had to mess with the DNS for that purpose but that was all I had done.

Had you tried ghost backup before? Did it work?

If you run the command ghost config url, does the result match what you have set up in your DNS? Are you using Cloudflare?

I do have Cloudflare, does this pose a problem?

Cloudflare could be interfering with the request. Try the process again ensuring that proxies are turned off, as well as any other Cloudflare caching/redirects.