Results 1 to 4 of 4
Thread: Copy file to second drive
-
06-07-2005, 11:42 AM #1WHT Addict
- Join Date
- Jan 2004
- Location
- Bay Area
- Posts
- 133
Copy file to second drive
Hi all,
My primary hard drive close to fail and server got install new hard drive as second drive. Now I like to copy all my file from primary drive to second drive before the promary drive quit working. what commnad do I use to do this ? I am not familiar with linux that much ..so please step by step.
below is 2 drive info.
Device Total Space Space Used Space Available Percentage Used Mounted On
/dev/hdg2 228G 2.8G 213G 2% /mnt
/dev/hde2 228G 114G 102G 53% /
/tmp 243M 82M 149M 36% /var/tmp
/usr/tmpDSK 243M 82M 149M 36% /tmp
please helpIt's just the same like last time!!!
-
06-07-2005, 10:02 PM #2Web Hosting Master
- Join Date
- Nov 2004
- Location
- India
- Posts
- 1,104
You can use this command to do it in fastest way :
rsync -a source/ destination/
For example to copy files from ' /mnt/backup/home ' to ' /home ' You can use :
rsync -a /mnt/backup/home/ /home/
Hopes this helps..AssistanZ - Beyond Boundaries...
Cloudstack Consultancy / 24x7 Web Hosting Support / 24x7 Server Management / Infrastructure Management Services
Web & Mobile Apps Development / Web Designing Services / Php, Grails, Java Development
-
06-08-2005, 12:07 AM #3Web Hosting Master
- Join Date
- Jan 2005
- Posts
- 2,203
Does that command preserve the file modification times?
-
06-08-2005, 11:05 AM #4WHT Addict
- Join Date
- Jan 2004
- Location
- Bay Area
- Posts
- 133
does that command copy all database over as well ?
It's just the same like last time!!!