This script is designed to backup your WordPress folder and database and transfer them to S3.
- s3cmd installed on your server
- An S3 account with access key and secret key
- A bucket created in your S3 account
- Clone this repository to your server.
- Open the
backup.sh
file in a text editor. - Replace the variables with your own values:
S3_ACCOUNT_ENDPOINT
: Your S3 account endpointS3_ACCOUNT_SECRET_KEY
: Your S3 account secret keyS3_ACCOUNT_ACCESS_KEY
: Your S3 account access keyS3_BUCKET_NAME
: Your S3 bucket nameDB_HOST
: Your database hostDB_NAME
: Your database nameDB_USERNAME
: Your database usernameDB_PASSWORD
: Your database passwordWP_FOLDER
: The path to your WordPress folder
- Save the file.
- Open a terminal window.
- Navigate to the directory where you saved the script.
- Run the following command:
./backup.sh
The script will backup your WordPress folder and database and transfer them to S3.
This script is released under the MIT License.
Please let me know if you have any questions or if there's anything else I can help you with!