Backup And Restore In Red Hat

Backup & Restore :

What is backup ? & what is restore ?

In computers, a backup or the process of backing up is making copies of data which may be used to restore the original after a data loss event.

How to take the backup of the data in red hat?

For the backup “tar” command is used.

Command
#tar option destination path source path

if you take the backup /etc dir? then

Command
#tar -cvf /tmp/etc.tar /etc 
#tar –zcvf /tmp/etc.gz /etc
#tar –jcvf /tmp/etc.bz /etc

How to check the all compress in red hat?

Command
#du –h /tmp/etc.*

How to restore the backup in red hat?

Notepad

NOTE : First you go to the dir where you decompress the backup.

Command
#rm  -rf /etc
#exit
#cd /
#tar –xvf /tmp/etc.tar    
#tar –zxvf /tmp/etc.gz
#tar –jxvf /tmp/etc.bz
#Backup_&_Restore_in_red_hat #How_to_take_the_backup_of_the_data_in_red_hat #How_to_check_the_all_compress_in_red_hat #How_to_restore_the_backup_in_red_hat

(New page will open, for Comment)

Not yet commented...