LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Copying data from one hard drive to another in linux (https://www.linuxquestions.org/questions/linux-newbie-8/copying-data-from-one-hard-drive-to-another-in-linux-4175485813/)

Raakh5 11-25-2013 06:48 AM

Copying data from one hard drive to another in linux
 
Hello,

OS: Centos 6x

We have two hard drives i.e. 25gb and 250gb
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 25G 17G 6.2G 74% /
tmpfs 2.0G 610M 1.5G 30% /dev/shm
/dev/xvda1 248M 55M 182M 24% /boot
/dev/xvdc1 247G 188M 234G 1% /xvdc1

There is a directory on 25gb /root/OldServerBackup. I want to move it to 250gb hard drive.

Please advise

Thanks in anticipation

druuna 11-25-2013 07:01 AM

Maybe I'm missing something but wouldn't the mv command do just that?
Code:

mv /root/OldServerBackup /xvdc1/some_dir

Raakh5 11-25-2013 07:19 AM

Thanks from the bottom of my heart

Raakh5 11-25-2013 07:25 AM

thanks from the bottom of my heart


All times are GMT -5. The time now is 05:52 AM.