• No results found

System Administration. Backups

N/A
N/A
Protected

Academic year: 2021

Share "System Administration. Backups"

Copied!
37
0
0

Loading.... (view fulltext now)

Full text

(1)

System Administration

(2)

Why Backup?

● Problems will occur

(3)
(4)
(5)
(6)

Automate, Automate, Automate

● If it is a hassle to do it, you won't do it

● Let the machine do the boring and repetitive 

(7)

Backup Types

(8)
(9)
(10)
(11)
(12)

Differential Backups

● Disadvantages:

– The farther you get away from your last full backup, 

(13)

Backup hardware

● Tapes, hard drives, DVDs?

● DVDs can store perhaps 4­8 GB of data

– which is not a lot by today's standards

(14)
(15)

Tar

(16)

Tar Usage

tar -cvf <filename> <stuff to back up>        

­c create

­v be verbose

­f create this tar file

● <filename> can be a .tar file, or a tape device ● <stuff to back up> can be individual 

(17)

Tar Usage

● What you put in <stuff to back up> determines 

how files are restored

● cd /home

tar -cvf filename.tar myhomedir

(18)

Tar Usage

● tar -cvf filename.tar /home/myhomedir

(19)

Tar Usage

● cd /home/myhomedir

tar -cvf filename.tar *

(20)
(21)

Seeing what is in a tarball

tar -tvf file.tar

(22)
(23)
(24)

Rsync

● Remote SYNC

● Synchronize two directories, potentially over a 

(25)

Rsync usage

rsync -av source dest      

­a archive (recursion, save permssions, etc) ­v verbose

● rsync -e ssh -av source

[email protected]:dest        

(26)
(27)

Rsync Source Specification

● If it does not end in a slash, the directory name is 

used

rsync -av source dest

● gives

(28)
(29)
(30)
(31)

Exercises

● Use rsync to back up your home directory to /

tmp/backup as the user linuxed on the 

(32)
(33)
(34)
(35)
(36)
(37)

References

Related documents

Vehicles that reach a secondary destination, for example the pause node closest to the offload- ing station in the case of a loaded vehicle, cannot themselves request re-planning

camera height and angle, sensor integration time and light source distance and height on the 11.. spectra’s signal-to-noise ratio (SNR) were evaluated under laboratory

It shall be unlawful for any person to engage in, conduct, or carryon, or to permit to be engaged in, conducted, or carried on, the operation of a massage treatment business unless

(D) Any licensee lawfully acting as an employee in a sexually oriented business prior to the denial of a license renewal application, or the suspension or revocation of a license,

parenting time, visitation, or other access with a child if the person is required to be registered as a sex offender for certain offenses unless the court finds that there

In other words, in Europe we are now seeing a complete reversal of the burden of proof, since henceforth tourism professionals are now, ipso jure , responsible for any

Foreign companies that conduct business in Norway and are taxable to Norway for their income are obliged to keep their books in accordance with the Norwegian Accounting and

Due to the possibility of a long court process for the acquisition of parcels with several owners, and in order to deliver the land to the construction contractors in time