Backup e restore di un client con amanda

From RVM Wiki
Revision as of 16:34, 2 November 2010 by Gabriele.vivinetto (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Un server Debian Lenny

servername.domain.dom 

dove c'è già installato amanda configurato e funzionante, deve backuppare un client

clientname.domain.dom

Configurazione Client

Installare amanda-client

sudo apt-get install amanda-client

Sistemare i servizi inetd:

sudoedit /etc/inetd.conf
amanda          dgram   udp     wait    backup  /usr/lib/amanda/amandad        amandad    -auth=bsd amdump amindexd amidxtaped
amandaidx       stream  tcp     nowait  backup  /usr/lib/amanda/amindexd       amindexd   -auth=bsd amdump amindexd amidxtaped
amidxtape       stream  tcp     nowait  backup  /usr/lib/amanda/amidxtaped     amidxtaped -auth=bsd amdump amindexd amidxtaped

Riavviare inetd

sudo invoke-rc.d openbsd-inetd restart

Aggiungere il nome del server ed i programmi in

sudoedit /etc/amandahosts
...
servername.domain.dom         backup  amdump amindexd amidxtaped
...

Configurazione Server

Configurare il server e testarlo per un corretto backup locale.

In particolare, il server locale dovrà essere dichiarato con il suo nome effettivo, NON localhost.

Definire il backup da fare sul client in /etc/amanda/DailySet1/disklist

...
clientname         /       always-full
...

Dal server testare se è tutto ok:

sudo -u backup /usr/sbin/amcheck -c DailySet1 clientname


Restore del client

Dal client lanciare:

sudo amrecover -s servername -t servername

Scegliere l'host:

sethost clientname

Scegliere il disco da cui restorare:

setdisk /

Se non lo si conosce:

listdisk

Scegliere la data del backup da restorare:

setdate 2006-01-03

Se no la si conosce: history

Scegliere la dir di restore

lcd /tmp

Aggiungere ciò che si desidera restorare

add directory_o_file

Avviare il restore

extract