Welcome to the Cloudways Custom Offsite Backups repository! This repository focuses on enhancing data security for Cloudways accounts by offering custom offsite backup solutions tailored for AWS and Google Cloud.
aws: The "AWS" folder contains Terraform code designed to set up remote Cloudways backups on AWS S3 buckets. This allows for seamless integration with Amazon Web Services for secure offsite storage of your Cloudways backups.
gcp: In the "GCP" folder, you'll find resources for setting up Cloudways backups on Google Cloud Platform (GCP) using Google Storage buckets. This enables you to leverage the robust infrastructure of Google Cloud for storing your backups securely offsite.
scripts: The "Scripts" folder houses templates for backup scripts for both AWS and Google Cloud. These scripts provide additional flexibility and customization options for managing your Cloudways backups according to your specific requirements.
- Custom terraform provisioner for Cloudways server provisioning.
- Remote backups on Google Cloud buckets.
- Remote backups on AWS S3 buckets.
- Cloudways input parameters verification
├── aws
│ ├── .auth
│ │ └── aws_credentials
│ └── modules
│ ├── createBackupScript
│ ├── createBucket
│ ├── createServer
│ └── createServiceAccount
│ ├── main.tf
│ ├── new_server_id.txt
│ ├── outputs.tf
│ ├── providers.tf
│ ├── remoteStateBucketAccess.json
│ └── variables.tf
├── gcp
│ ├── .auth
│ │ └── credentials.json
│ └── modules
│ ├── createBackupScript
│ ├── createBucket
│ ├── createServer
│ └── createServiceAccount
│ ├── main.tf
│ ├── new_server_id.txt
│ ├── outputs.tf
│ ├── providers.tf
│ └── variables.tf
├── scripts
| ├── aws_backup_script.sh
│ └── gcp_backup_script.sh
├── .gitignore
├── LICENSE
└── README.md
A brief description of the layout:
.authFolder containing Google Cloud and AWS authentication credentials.createBackupScriptModule to create AWS and GCP backup scripts from templates available inscripts.createBucketModule to create AWS/GCP buckets to store Cloudways application backups.createServerModule to launch a Cloudways server.createServiceAccountModule for creating remote provider service accounts to be used by Cloudways server backup cron.main.tfMain Terraform configuration filenew_server_id.txtText file containing the ID of the new Cloudways server.outputs.tfTerraform outputs configuration file.providers.tfTerraform providers configuration file.variables.tfTerraform variables configuration file.scriptsfolder containing backup script templates.aws_backup_script.shShell script for AWS backup operations.gcp_backup_script.shShell script for GCP backup operations..gitignorefor excluding specific files and directories.LICENSEFile containing the license information for the repository.README.mdProject readme file.
- Infrastructure as Code
- Bash scripting
If you have any feedback, please reach out to me at [email protected]
