From BStegmaier
|
Note |
|
I can't recommend this method. It's complicated and error prone. |
Contents |
Server
- Install software
apt-get install amanda-server aespipe
- Make config dir and change to it
mkdir /etc/amanda/notebook && cd /etc/amanda/notebook
- Unzip example config
gzip -c /usr/share/doc/amanda-server/examples/amanda.conf.in.gz > amanda.conf
- Change all "DailySet1" to "notebook"and modify the following lines
org "notebook"
dumpcycle 7 days
runspercycle 7
tapecycle 7 tapes
runtapes 1
tpchanger "chg-disk"
tabedev "file:/mnt/backup/notebook"
# rawtapedev
changerfile "/etc/amanda/notebook/changer"
tapetype DISK
labelstr "^notebook-[0-9][0-9]*$"
# holdingdisk
define tapetype DISK {
comment "backup to hd"
length 3072 mbytes
}
define dumptype notebook-data {
global
program "GNUTAR"
comment "encrypted and compressed"
#exclude-list "/etc/amanda/notebook/exclude-data"
compress client fast
encrypt server
server_encrypt "/usr/sbin/amcrypt"
server_decrypt_option "-d"
priority high
}
define dumptype notebook-other {
global
program "GNUTAR"
comment "compressed but not encrypted"
#exclude-list "/etc/amanda/notebook/exclude-others"
compress client fast
}
define dumptype notebook-root {
global
program "GNUTAR"
comment "plain"
#exclude-list "/etc/amanda/notebook/exclude-root"
compress none
priority high
}
- Edit disklist
notebook /home notebook-data notebook /boot notebook-other notebook /usr notebook-other notebook /var notebook-other notebook /mnt/data notebook-data notebook / notebook-root
- Edit /etc/amandahosts
localhost backup notebook backup
Create Tapedevices
- Create dirs
for i in 1 2 3 4 5 6 7; do mkdir -p /mnt/backup/notebook/slot${i}; done
- Touch info file
touch /mnt/backup/notebook/info
- Initalize the tapedevice
ln -s /mnt/backup/notebook/slot1 /mnt/backup/notebook/data touch tapelist
- Permissions
chown -R backup:backup /mnt/backup/notebook /etc/amanda/notebook
- As user backup touch tapelist and create disklabels
su backup
for i in 1 2 3 4 5 6 7; do /usr/sbin/amlabel notebook notebook-${i} slot ${i}; done
Client
- Install client
apt-get install amanda-client
- Edit /etc/amandahosts
localhost backup desktop backup
Testing
- As user backup
/usr/sbin/amcheck notebook
- Manual backup
/usr/sbin/amdump notebook
Scheduled Backups
- Check for correct tape at 19:00 and make backup at 22:00 every day
0 19 * * * backup /usr/sbin/amcheck -m notebook 0 22 * * * backup /usr/sbin/amdump notebook
Restoring Backups
Full Restore
see Weblink
Single File
- Extracting e.g. /home/benedikt/blub.txt
amrecover> sethost desktop amrecover> setdisk /home amrecover> cd benedikt amrecover> add blub.txt amrecover> extract


