Backup e restore di un client con amanda: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
Un server Debian | Un server Debian Lenny | ||
servername.domain.dom | |||
dove c'è già installato amanda configurato e funzionante, deve backuppare un client | |||
clientname.domain.dom | |||
==Configurazione Client== | ==Configurazione Client== | ||
| Line 11: | Line 14: | ||
<pre> | <pre> | ||
amanda dgram udp wait backup /usr/lib/amanda/amandad amandad | 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 | 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 | amidxtape stream tcp nowait backup /usr/lib/amanda/amidxtaped amidxtaped -auth=bsd amdump amindexd amidxtaped | ||
</pre> | </pre> | ||
| Line 19: | Line 22: | ||
sudo invoke-rc.d openbsd-inetd restart | sudo invoke-rc.d openbsd-inetd restart | ||
Aggiungere il nome del server ed i programmi in /etc/amandahosts | Aggiungere il nome del server ed i programmi in | ||
sudoedit /etc/amandahosts | |||
... | ... | ||
Revision as of 09:17, 9 July 2010
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