AWS EC2 Linux backup

There is awesome Amazon Linux AMI, I think it is the most popular image that used for creating EC2 across all AWS regions. In fact you read / watch about it in every single tutorial / education course. I can just agree with all listed key features of it, but personally want to admit the following:

AWS EC2 Linux backup

  • Lightweight. Indeed, it's super small and contains just really basic. In free tier it is supplied by GP2 8GiB (General Purpose SSD with up to 3000 IOPS) and for daily tasks that should be fine;
  • Comes with built-in AWS CLI. This is what I really love! In few clicks with IAM role assigned ( (!!!) do NOT forget to do this launching your instance, otherwise you'll miss that huge piece of Amazon);
  • Stable and the most reliable. This might be just my opinion, but as it is driven by Amazon and community, it should be the most robust and mature.

The launch part should be super simple and in most cases people just follow the wizard (keep your pem key in the right place and chmod it to the lowest number you can). There are different use cases people have with this image (from hosting PBX to SQL / noSQL DBs or webservices with Apache / Nginx etc). It's all about data actually and data should be saved and recoverable.

Cloudberry Backup for Linux and it comes with nice command line interface (CLI), what is really important (IMHO, in most cases admins run it without UI).
Ok! The best way to get the software is to download it from CBL website and upload to one of bucket in your AWS S3 service (even through web interface, as it is just one file).

Amazon Linux is actually based on RHEL 5.x and 6 (partially). Go with Red Hat 6.x here.

Now, SSH to your Linux using the following:

ssh ec2-user@public_IP_of_linux_instance -i /path/to/your/pem-file

ec2-user - default user that should be used for remote SSH (you may want to reconfigure it once production), pem-file is the one you download when creating public key (don't loose it and make sure chmod 600 your.pem).

As you have AWS CLI built-in (check this nice video from re:Invent 2015) you actually can work with all AWS services. Let's try it out and output something:

aws s3 ls
2016-09-14 11:05:28 erudinsky-s3
2016-08-07 15:57:25 evgenyrudinsky
aws s3 ls s3://erudinsky-s3
2016-09-14 11:05:49   45135196 rh6_CloudBerryLab_CloudBerryBackup_v1.9.0.16_20160810193949.rpm

Perfect! We can see objects in our buckets! And this is not all! We can also create, update and remove!

aws s3 cp s3://erudinsky-s3/rh6_CloudBerryLab_CloudBerryBackup_v1.9.0.16_20160810193949.rpm /home/ec2-user/

We just copied rpm file (installed package of my CBL Backup for Linux) across to home directory of our default user! Let's install this package quickly! It is very important to set this --nodep flag, that will skip all required dependencies for graphic interface and add all CBL daemons accordingly.

rpm -i rh6_CloudBerryLab_CloudBerryBackup_v1.9.0.16_20160810193949.rpm
error: Failed dependencies: is needed

We just tried wrong way. Let's add the flag! Install the software and activate license (BTW, there is totally FREE version available).

rpm -i rh6_CloudBerryLab_CloudBerryBackup_v1.9.0.16_20160810193949.rpm --nodeps
cbb activateLicense -e "" -free -un yourname
cbb activateLicense -e "" -free -oa "received random key"
CloudBerry Backup Command Line Interface started

We are done! Let's configure accont (any from the list of 20+ providers, but let's do this to S3 storage provide (Infrequent Accessed Data).

cbb addAccount -d erudinsky-s3 -st AmazonS3 -ac  -sk  -c erudinsky-s3 -ssl
cbb account -l
CloudBerry Backup Command Line Interface started
erudinsky-s3 : AmazonS3
cbb addBackupPlan -n "files" -a "erudinsky-s3" -f /home/ec2-user/files/" -c yes -notification on

In short, this is about:

Start discussion:
Related articles:
In this article we are going to set up CloudFront for static site. And there is nice tip how to nested content (i.e. subfolders) available. ... more
In this very short tutorial we are going to mount S3 bucket from AWS to the local folder of Debian. ... more
Learn how to mount S3 bucket to your Mac OS ... more
over 5 years#amazon s3 #mac #amazon
Cloudberry 1.8 for Mac OS X is now live! Impressive list of features and storage platforms support! S3 compatible, new UI and etc. ... more
over 5 years#cloudberrylab #mac
Asterisk IP PBX comes with embedded MixMonitor, that allows us to to record and place those recordings somewhere. ... more
August, 9th, 2016 - passed my Amazon CSAA. Few tips I'd love to share here. ... more
Working with customers is great experience and you always learn or invent something new. I've been working on the case with files portioning ... more
AWSRus — Official AWS User Group Russia (St. Petersburg). ... more
about 5 years#meetup #awsrus #amazon
CloudAcademy webinar: how to use AWS services for Backup and DR challenges. I am presenter! ... more
In this article you'll learn how to protect your data against hardware and software failures according to the 3-2-1 rule. ... more
Since FullAccess is disabled even for Administrator's account in Exchange (including 2010) CloudBerry Backup for Exchange can't restore using Administrator's username and password pair for item level restore of any mailbox. Let's fix it. ... more
In CloudBerry Lab we help people to move data offsite to the cloud either with backup or file management solution. Sometimes I need sample files, a lot of sample files. ... more
over 4 years#cloudberrylab #ruby
AWS Elastic File System is scalable file system in the cloud, requires NFSv4.1 client and does not support Windows at the moment. However let's see what we can do.. ... more
It's been written many times, however there is no consistency how to make static web site with SSL and SEO friendly urls (301 redirect). Pure AWS based services static website ahead, check details inside! ... more
Send text messages (SMS) with few lines of Python code using Amazon SNS and boto3 SDK. ... more
AWS SES supports SMTP settings for sending through it-self. This is really helpful if we want to configure personal outbound server. ... more
over 4 years#aws ses #smtp #amazon
Launching AWS EC2 can be supplied by something what is known as "user data" and it helps to have things ready before you access it. ... more
How to pre-deploy App using user data script for Windows OS with powershell powered script in EC2? Example inside. ... more
I made light talk on one of our recent #AWSRus community gathering in Moscow and decided to discover this topic with further series of posts in my blog covering various AWS services. ... more
over 4 years#free tier #amazon
In this short article you will learn how to use PsExec with remote powershell script to download, execute and clean up software. You can do it for multiple computers in super easy way. ... more
Here at CloudBerry, where one of the goal I have is to help partners decide, pick and build right configurations for dealing with computers data when they need backup solution. FTP, SCP, WebDav and some other proprietary protocols have been here forever, where simplicity and flexibility made them number one in data protection and management fields as primary target configurations. But, there is big BUT... ... more