The most important part for any sys admin is to take regular backup. Here I will show you few methods which you can use to take a backup of your hard disk using dd command. You can take a backup of entire hard disk to some external storage either manually or you can run a cron job for the same.
Copying the data from hard disk using dd command
# dd if=/dev/sda of=/dev/hda
Here "if" represents input HDD and "of" represents output HDD. So make sure make the entry properly because it might lead you to complete loss of data.
If you receive any error running the above command then try the following command
# dd if=/dev/sda of=/dev/hda conv=noerror,sync
Using this, the command will continue to copy even if gets any read error.
Creating a image file of the harddisk
But this is not much appropriate to copy the harddisk files to remote locations so I prefer making an image file of the harddisk and restoring the same to a remote location.
# dd if=/dev/sda of=/backup/hdd_1.img
Restoring from a image file
# dd if=hdd_1.img of=/dev/hda
Converting CD-ROM into .iso file
# dd if=/dev/cdrom of=/backup/cdrom.iso bs=2048
Here we are specifying the default block size i.e.2048 bytes which will be used to convert the cdrom file into .iso file
Here we are specifying the default block size i.e.2048 bytes which will be used to convert the cdrom file into .iso file
Follow the below links for more tutorials:
Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler
Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
How to configure Samba 4 Secondary Domain Controller
How to secure Apache web server in Linux using password (.htaccess)
How to register Red Hat Linux with RHN (Red Hat Network )
Red hat Enterprise Linux 5.5 Installation Guide (Screenshots)
15 tips to enhance security of your Linux machine
Why is Linux more secure than windows and any other OS
What is the difference between "su" and "su -" in Linux?
What is kernel-PAE in Linux?
What is swappiness and how do we change its value?
How to log iptables messages in different log file
What are the s and k scripts in the etc rcx.d directories
How to check all the currently running services in Linux
How to auto start service after reboot in Linux
What is virtual memory, paging and swap space?
Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
How to configure Samba 4 Secondary Domain Controller
How to secure Apache web server in Linux using password (.htaccess)
How to register Red Hat Linux with RHN (Red Hat Network )
Red hat Enterprise Linux 5.5 Installation Guide (Screenshots)
15 tips to enhance security of your Linux machine
Why is Linux more secure than windows and any other OS
What is the difference between "su" and "su -" in Linux?
What is kernel-PAE in Linux?
What is swappiness and how do we change its value?
How to log iptables messages in different log file
What are the s and k scripts in the etc rcx.d directories
How to check all the currently running services in Linux
How to auto start service after reboot in Linux
What is virtual memory, paging and swap space?