Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the best way to download the contents of an AWS EBS volume?

I have a number of large (100GB-400GB) files stored on various EBS volumes in AWS. I need to have local copies of these files for offline use. I am wary to attempt to scp such files down from AWS considering their size. I've considered cutting the files up into smaller pieces and reassembling them once they all successfully arrive. But I wonder if there is a better way. Any thoughts?

like image 801
user2076663 Avatar asked Jan 24 '14 21:01

user2076663


2 Answers

There are multiple ways, here are some:

  1. Copy your files to S3 and download them from there. S3 has a lot more support in the backend for downloading files (It's handled by Amazon)

  2. Use rsync instead of scp. rsync is a bit more reliable than scp and you can resume your downloads.

    rsync -azv remote-ec2-machine:/dir/iwant/to/copy /dir/where/iwant/to/put/the/files

  3. Create a private torrent for your files. If your using Linux mktorrent is a good utility you can use: http://mktorrent.sourceforge.net/

like image 65
Rico Avatar answered Nov 03 '22 00:11

Rico


Here is one more option you can consider if you are wanting to transfer large amounts of data:

AWS Import/Export is a service that accelerates transferring data into and out of AWS using physical storage appliances, bypassing the Internet. AWS Import/Export Disk was originally the only service offered by AWS for data transfer by mail. Disk supports transfers data directly onto and off of storage devices you own using the Amazon high-speed internal network.

Basically from what I understand, you send amazon your HDD and they will copy the data onto it for you and send it back.

As far as I know this is only available in USA but it might have been expanded to other regions.

like image 44
KNejad Avatar answered Nov 03 '22 00:11

KNejad