Sie sind auf Seite 1von 12

1

What is Backup ?

Copy data to alternate media

Prevent data loss

Only Administrators can backup the data

Back
Back Up
Up Data
Data Corrupted
Corrupted Data
Data Restore
Restore Data
Data

2
Types of Data

System Generated Data

User Generated 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

tar (tape archive)


cpio (copy input/output)
dump

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 store the data at another location is called


as 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

As a system administrator some task are


repetitive like backup, monitoring log files, etc
To automate them:
at
batch
cron

12

Das könnte Ihnen auch gefallen