I need to copy more than 300 GB files (most them are images) one EC2 instance to another EC2 instance, what will be the best method for doing this?
EBS Snapshot will be not work in my situation because I will be need only one directory copy.
I need to copy more than 300 GB files (most them are images) one EC2 instance to another EC2 instance, what will be the best method for doing this?
EBS Snapshot will be not work in my situation because I will be need only one directory copy.
In addition to the snapshot, you can also use the scp command. Depending on your environment, this may be problematic with large files, it's good to know the options. To transfer the file from the second instance (ec2-2) to first instance (ec2-1), run scp on ec2-1:
scp -i /Path-To-Key-File-for-ec2-2/key.pem ec2-user@Elastic-IP-of-ec2-2:/path/filename your/local-path-on-ec2-1/filename
If you have instances in different regions, its a bit more complex. Here's a guide on transferring data between AWS regions.