LINUX BACKUP
Command: tar
v tar –cvf (Creating the tar File)
v tar –tvf (listing the content of tar File)
v tar –xvf (extracting the contents of tar file)
c = Creat
t = list
x = extrat
v = verbos
f = files
Step: 1
Create 1 or 2 User Accounts
Step: 2
Login into that user and put some data
$mkdir Redhat
$cd Redhat
$cat > file1
(Creat 2 or 3 files)
Come to root Account
Syntex:
Ø #tar –cvf _ destination _ source
Eg: #mkdir /backup
#tar –cvf /backup/home.back /home/
Ø #tar –tvf <File name>
Eg: #cd /backup/
#ls
#tar –tvf home.back
Ø #tar –xvf <File name>
Eg: #tar xvf home.back
#ls
#cd home
#ls
#cd
Delete the user
#userdel <user name>
#rm –r /home/<user name>
#YES (No.of.times)
#cd /backup/home
#cd <user name>
#ls
