Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi. Where do I find my backup source and database code in Wordpress and how do I transfer it to my bitbuckets repository?
I do not suggest this for most use cases. You might get away with it if you mean to build and publish the site in a CICD process.
My WordPress site isn't "live" on the Internet, and only exists in a private VM. In my environment, The WordPress install location on my VM is a git repository, which you should probably never do.
My deployment process mirrors the site using wget and saves the pages in a different directory. The static pages are copied to an AWS S3 bucket for static hosting.
Never include a .git directory in a published website, ever. It is a target for people doing naughty things.
I do backups in two stages:
1. Use pg_dump/mysqldump to create a database dump and store it in the repository. My database is small enough that I don't compress it, your mileage may vary.
2. Do the usual git add, commit, push process.
Restoration is as simple as rolling back a commit.
Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!
Join an Atlassian Community Event!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.