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.

Protect Your Data with BDRSuite

Cost-Effective Backup Solution for VMs, Servers, Endpoints, Cloud VMs & SaaS applications. Supports On-Premise, Remote, Hybrid and Cloud Backup, including Disaster Recovery, Ransomware Defense & more!

Let’s look into a case to illustrate this:

If the user who has access to the S3 bucket mistakenly corrupts or deletes data there. Data Lost!
Human Error is Inevitable and its impact can be adverse.
Things like this will happen. But, What can you do to protect yourself from such circumstances? How can
your data be recovered?
The answer is – Backup!
Your lost data can be restored if you have a backup.

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

Download Banner

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.

To install fuse3 on Ubuntu, use the following command:
sudo apt-get -y install fuse3
To install s3fs on Ubuntu, use the following command:
sudo apt-get -y install s3fs

Step 2: Mount the S3 bucket to the Linux Machine

  1. Connect to the Linux – Ubuntu 22.04 machine (Physical or Virtual Machine) that is readily available
  2. Edit the file etc/passwd-s3fs in any text editor (say vi or vim) as follows:
  3. $ vi /etc/passwd-s3fs

  4. Add the Access Key and Secret Key to the file: etc/passwd-s3fs in the format below:
  5. AWS_Access_Key:AWS_Secret_Access_Key

    Note: Make sure to replace the AWS_Access_Key and AWS_Secret_Access_Key with the actual values.

  6. Apply permission for the file /etc/passwd-s3fs using the following command
  7. $ chmod 600 /etc/passwd-s3fs

  8. Create a directory to Mount in the Linux Machine (Ubuntu 22.04) using the command below:
  9. mkdir -p /mnt/s3fusetest

  10. Mount the S3 bucket to the Linux Machine (Ubuntu 22.04) using the following command:

$ s3fs mybucket /mnt/s3fusetest -o passwd_file=/etc/passwd-s3fs

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

  1. Download and Install BDRSuite Backup Server on a dedicated machine. Refer to the Installation Steps here
  2. 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
  3. Add the Linux Machine ((on which the S3 is mounted) details to the BDRSuite Backup Server
  4. Navigate to Backup -> Configure Backup -> Files/Folders menu
  5. 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
  6. 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
  7. Backup will run as per the schedule and the backup data will be stored on the configured backup repository
  8. 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.

Rate this post