Beruflich Dokumente
Kultur Dokumente
What is Backup ?
Back
Back Up
Up Data
Data Corrupted
Corrupted Data
Data Restore
Restore Data
Data
2
Types of Data
3
Types of Backup
Full Backup
Complete back up of entire system.
Incremental Backup
It includes all files that were changed since the last
backup. It always smaller than differential backup.
Differential Backup
It includes all the files that were changed since the last
full backup. As time increases since the last full-backup
the size of differential backup increases.
4
Commands for Backup
5
tar command
To
Totake
takethe
thebackup
backup
[root@comp1
[root@comp1 ~]#tar <options><destination>
~]#tar <options> <destination> <source>
<source>
Options :
-c - Create
-v - Verbose
-f - File
-t - Table of content
-x - Extract to
-w - Interactive
-z - Zip
6
tar Command
To
Totake
takethe
thebackup
backup
[root@comp1
[root@comp1 ~]#tar -cvf <path><filename>
~]#tar -cvf <path><file name> <source>
<source>
To
Tolist
listthe
thecontent
contentof
oftar
tarfile
file
[root@comp1 ~]#tar -tvf <path><file name>
[root@comp1 ~]#tar -tvf <path><file name>
To
Toextract
extractthe
thecontent
content of
oftar
tarfile
file
[root@comp1
[root@comp1~]#tar
~]#tar-xvf
-xvf<path><file
<path><filename>
name>
7
tar Command
To
Tobackup
backupalong
alongwith
withzip
zip
[root@comp1
[root@comp1 ~]#tar -cvzf <path><filename>
~]#tar -cvzf <path><file name> <source>
<source>
To
Touncompress
uncompressthe
thecontent
contentof
of tar.gz
tar.gzfile
file
[root@comp1 ~]#tar -xvzf <path><file name>
[root@comp1 ~]#tar -xvzf <path><file name>
8
cpio copy input output
To
Tobackup
backup
[root@comp1
[root@comp1 ~]#ls <options>|| cpio
~]#ls <options> cpio ov
ov>> <file
<filename>
name>
To
Toextract
extract
[root@comp1
[root@comp1 ~]#cpio iv < <file
~]#cpio iv < <filename>
name>
9
Dump & Restore
To
Tobackup
backup
[root@comp1
[root@comp1 ~]#dump -0uf <device>
~]#dump -0uf <device> <file
<filename>
name>
To
Toextract
extract
[root@comp1
[root@comp1 ~]#restore -f <path>
~]#restore -f <path>
10
Remote Backup
To
Tobackup
backup
[root@comp1
[root@comp1~]#rsync
~]#rsync avz
avz <source>
<source> -e-e
ssh <destination ip>:<directory>
ssh <destination ip>:<directory>
or
or
[root@comp1
[root@comp1 ~]#scp r <source><destination
~]#scp r <source> <destination ip>:<directory>
ip>:<directory>
11
Automation Jobs
12