Maca
Maca

Reputation: 1689

Move data from EBS volume to another volume or mount

I want to move large data from EBS volume A to volume B. Can I just mount volume A to instance B with simple resize2fscommand? would this format/erase the data in volume A?

In volume A I have large directory (300GB) called /var/www/html/blog that I would like to transfer everything to instance B to /app/files/. Reason for this is that I have purchased pre-built AMI from the marketplace and I want to use the server configuration.

Or is there any good way to transfer data to instance B. Its mostly images and html files.

Upvotes: 2

Views: 1430

Answers (1)

chris
chris

Reputation: 37460

Take a snapshot of Volume A. Create a new volume from the snapshot, and associate it with Instance B. Mount it to Instance B. Done.

Upvotes: 1

Related Questions