Results 1 to 4 of 4
  1. #1
    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
    I 'd like to copy >>>/dev/hde2 to /dev/hdg2/
    please help
    It's just the same like last time!!!

  2. #2
    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

  3. #3
    Join Date
    Jan 2005
    Posts
    2,203
    Does that command preserve the file modification times?

  4. #4
    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!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •