How to take Backups in linux using dd command
In one of our previous article, we have discussed how to take snapshot backups in a linux system. In this article we will see how to take backups in our linux file system using the dd command. The dd command is useful to back up entire devices, whether entire hard disks, individual partitions, or logical volumes. For example, to back up an entire hard disk to a second hard disk, execute a command like the following: #dd if=/dev/sda1 of=/dev/sda2 The if option is used to specify the input device. The of option is used to specify the output device. Make sure when you execute this command that the hard disk that you are storing the backup is at least as large as the hard disk that you are backing up. What if you do not have a spare hard disk, but you have enough room on a device (such as an external USB hard disk)? In this case, place the output into an image file: #dd if=/dev/sda1 of=/mnt/hda.img You can also use the dd command to back up the contents of a CD-ROM or DVD into an ISO image: #dd if=devcdrom of=cdrom.iso The ISO image file can be used to create more CD-ROMs, or it can be shared via the network to make the contents of the CD-ROM easily available (rather than passing the disc around the office). It is...
Read More