What is Amazon S3?
Amazon S3 is a Secure and Reliable Cloud Storage Service in which the data is stored as Objects.
S3 is one of the most widely adopted cloud storage solutions in the market for its High Availability, Seamless Scalability, and Durability. Amazon S3 maintains redundancy by replicating data across multiple availability zones. Though the data is always available, there are cases where you need to backup data on the S3 Bucket.
Let’s look into a case to illustrate this:
Thus, It is recommended to have a backup of your data stored in the S3 Bucket to avoid situations like this.
In the article, we will look into the step-by-step instructions on how to backup data in the S3 Bucket using Vembu BDRSuite Software
This post is written with the assumption the reader is familiar with the AWS environment and has access to an AWS account with sufficient privileges required for AWS S3 Backup.
BDRSuite – A Complete Backup & Disaster Recovery Solution
BDRSuite is designed to protect the data span across diverse IT environments – Virtual (VMware, Hyper-V), Physical (Windows, Linux, Mac), Cloud Workloads (AWS), and SaaS applications (Microsoft 365, Google Workspace).
AWS S3 Backup using BDRSuite – Process, Prerequisites, and Steps to Backup the S3 Data
Process:
- Mount S3 Bucket on a Linux Machine (Here we will use Ubuntu 22.04)
- Deploy BDRSuite Backup Server on a dedicated machine
- Configure backups for the files/folder in the S3 from BDRSuite Server
Prerequisites:
- Ubuntu 22.04 – VM or physical machine
- AWS Account credentials that have sufficient privileges
- S3 bucket from which you want to backup. Make sure you have the S3 Access Key and Secret Key with full access to connect to the S3 bucket
Steps to perform AWS S3 Backup using BDRSuite:
Step 1: Install dependent libs on the Linux Machine
Note: These steps are tested in Ubuntu’s 22.04, by default fuse3 will be available as part of Ubuntu OS. If not available please use the below command to install and configure it.
Step 2: Mount the S3 bucket to the Linux Machine
- Connect to the Linux – Ubuntu 22.04 machine (Physical or Virtual Machine) that is readily available
- Edit the file etc/passwd-s3fs in any text editor (say vi or vim) as follows:
- Add the Access Key and Secret Key to the file: etc/passwd-s3fs in the format below:
- Apply permission for the file /etc/passwd-s3fs using the following command
- Create a directory to Mount in the Linux Machine (Ubuntu 22.04) using the command below:
- Mount the S3 bucket to the Linux Machine (Ubuntu 22.04) using the following command:
Note: Make sure to replace the AWS_Access_Key and AWS_Secret_Access_Key with the actual values.
Now that the S3 bucket is mounted on a Linux machine, you can easily configure backups for the data (files/folders) in the S3 Bucket using BDRSuite
Step 3: Configuring AWS S3 Backup using BDRSuite
- Download and Install BDRSuite Backup Server on a dedicated machine. Refer to the Installation Steps here
- Login to the BDRSuite backup Server console. Configure the Backup Repository where the AWS S3 backup data needs to be stored. BDRSuite supports a wide range of storage targets – NAS, SAN, Azure Blob, AWS S3, Wasabi, etc
- Add the Linux Machine ((on which the S3 is mounted) details to the BDRSuite Backup Server
- Navigate to Backup -> Configure Backup -> Files/Folders menu
- Configure file-level backups for the data in the AWS S3. You can choose to backup all or only specific files/folders from the S3 Bucket
- You will have scheduling policies for automatic regular backups and configurable retention policies to retain the backup data as long as you need. For more information on backup configuration, click here
- Backup will run as per the schedule and the backup data will be stored on the configured backup repository
- You can restore the backup data (files/folders) anytime on the BDRSuite Backup Server
Be sure to download and try a fully-functional 30-day free trial version of BDRSuite to try these steps in your environment.
Follow our Twitter and Facebook feeds for new releases, updates, insightful posts and more.