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?
How to restore the backup in red hat?
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