How do I copy files between harddrives on Ubuntu CLI?

Posted by ed209 on Server Fault See other posts from Server Fault or by ed209
Published on 2012-12-11T10:42:33Z Indexed on 2012/12/11 11:05 UTC
Read the original article Hit count: 242

Filed under:
|
|
|

I have a dedicated server with a 120gb main ssd. The server happens to come with a couple of 3000GB hard drives. I'd like to use them to back up my main drive.

Preferably, I'd like one as an exact copy of the main SSD and the other with incremental backups of the mysql database and a user uploads file.

These are the drives I have

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f2e18

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048     4196352     2097152+  83  Linux
/dev/sda2         4198400     5246976      524288+  83  Linux
/dev/sda3         5249024   234441647   114596312   83  Linux

Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 3000.6 GB, 3000592982016 bytes
255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/sdc doesn't contain a valid partition table

The first problem I have, is that I have no idea how to copy from one drive to another. Kind of embarrassing I know, but I don't know where to start. I'm thinking of this in terms of Mac OS cli where I'm able to copy between /Volumes - is there an equivalent?

(there is nothing under /mnt or /media)

© Server Fault or respective owner

Related posts about ubuntu

Related posts about backup