Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

xpd



Chief Trash Bandit
8974 posts

Uber Geek
+1 received by user: 1379

Mod Emeritus
Trusted
Lifetime subscriber

Topic # 240641 18-Sep-2018 14:15
Send private message quote this post

I need an offline backup of a machine running on AWS - poking around it dosent appear to be something that can be done easily, such as using a Veeam type of backup etc. Is rsync my best option from the machine itself ? (Its running Ubuntu)

 

And if rsync is best option, any hints/tips ? Never used it before :D

 

TIA

 

 





XPD / Gavin / DemiseNZ

 

For Free Games, Geekiness and Reviews, visit :

 

Home Of The Overrated Raccoons

 

Battlenet : XPD#11535    Origin/Steam/Epic/Uplay : xpdnz


Create new topic
2432 posts

Uber Geek
+1 received by user: 830

Trusted
Lifetime subscriber

  Reply # 2092718 18-Sep-2018 18:14
Send private message quote this post

What are you trying to backup? Normally you use a cloud formation template to deploy and know exactly where the files or databases go. Then just chuck them onto a s3 bucket then migrate to glacier and you're done.
Plus a Google of "backup ec2 ami to s3" gives you.
https://n2ws.com/blog/how-to-guides/automate-amazon-ec2-instance-backup





14138 posts

Uber Geek
+1 received by user: 2544

Trusted
Subscriber

  Reply # 2092834 18-Sep-2018 20:36
Send private message quote this post

What exactly are you trying to achieve? AWS is very reliable, can do backups itself (snapshots), you can load balance VMs across availability zones (data centers in the same country) to achieve high availabililty. 

 

There is no easy way to create a backup of an AWS VM outside of AWS, unless you imported it into AWS. If you created it in AWS it's difficult.

 

You can create snapshots, which are saved to a private / hidden part of S3. You can copy the files inside the instance anywhere you like - but good luck getting the OS to work again with permissions / ownership / etc.

 

Copying your data and config out is easy - rsync or any other method you like. Typically this is the best thing to do, have a script that builds a new instance (CloudFormation / Puppet / etc) then add your data and configuration, and off you go. I do this using restic / borg backup, upload to S3, then download anywhere else. I used to send it to Dropbox as well.





AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


Amanzi
878 posts

Ultimate Geek
+1 received by user: 90

Trusted
Subscriber

  Reply # 2092924 19-Sep-2018 00:13
Send private message quote this post

Similar to @bartender's response - use an automation tool to deploy and configure the VM, but if you want to restore outside of AWS then use something like Ansible for this instead of Cloud Formation which only works with AWS. Then you just need to worry about backing up and restoring your data and there are lots of command line tools for this too which can be integrated into your deployment playbook.


Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.