manual pages: http://wiki.zmanda.com/man/amanda.8.html
sudo dpkg --install amanda-backup-server_2.6.1p1-1_i386.deb
sudo apt-get -f install
sudo passwd amandabackup
Note: Installation will fail on Windows if you have an older version already installed. Just make sure you uninstall old versions before proceeding with install.
harddisk may need to be defined in amanda.conf, you can do it like this:
define tapetype HARDDISK {
comment "Virtual Tapes"
length 500000 mbytes
}
This will run amdump once a day, doing full backups weekly. It will keep 14 days worth of data.
amserverconfig DailySet1 --template harddisk --tapedev /mnt/raid/amanda/vtape/DailySet1 --mailto root@localhost --dumpcycle 7 --runspercycle 7 --tapecycle 14 --runtapes 1
This will run amdump once a day, doing full backups bi-weekly. It will keep 15 days worth of data.
amserverconfig DailySet1 --template harddisk --tapedev /mnt/raid/amanda/vtape/DailySet1 --mailto ben@bcspcsonline.com --dumpcycle 14 --runspercycle 14 --tapecycle 15 --runtapes 1
define dumptype zwc-compress {
global
auth "bsdtcp"
compress client fast
program "DUMP"
estimate client
}
amaddclient --config DailySet1 --client the-black-pearl --diskdev "C:/Documents and Settings/Ben/My Documents" --dumptype zwc-compress
amcheck DailySet1
holdingdisk hd1 {
comment "main holding disk"
directory "/mnt/holding-disk" # where the holding disk is
use -10 Gb # how much space can we use on it
# a non-positive value means:
# use all space but that value
chunksize 1Gb # size of chunk if you want big dump to be
# dumped on multiple files on holding disks
# N Kb/Mb/Gb split images in chunks of size N
# The maximum value should be
# (MAX_FILE_SIZE - 1Mb)
# 0 same as INT_MAX bytes
}crontab –e
0 16 * * * amandabackup /usr/sbin/amdump DailySet1
syntax:
amadmin <BackupSetName> find <hostname> <disk> amadmin DailySet1 find the-black-pearl "C:/Users/Ben/Documents" amadmin DailySet1 find the-black-pearl "C:/Users/Ben/Desktop" amadmin DailySet1 find black-book "C:/Users/Ben/Documents" amadmin DailySet1 find black-book "C:/Users/Ben/Desktop" amadmin DailySet1 find baby_laptop "C:/Documents and Settings/Erin/My Documents/Documents" amadmin DailySet1 find baby_laptop "C:/Documents and Settings/Erin/My Documents/Home Videos" amadmin DailySet1 find baby_laptop "C:/Documents and Settings/Erin/My Documents/My Music" amadmin DailySet1 find baby_laptop "C:/Documents and Settings/Erin/My Documents/My Pictures" amadmin DailySet1 find baby_laptop "C:/Documents and Settings/Erin/Desktop"
returns:
date host disk lv tape or file file part status 2009-06-16 22:10:51 the-black-pearl "C:/Documents and Settings/Ben/My Documents/My Pictures" 0 DailySet1-1 1 1/1 OK
change cwd to desired restore directory before executing amfetchdump
syntax:
amfetchdump <BackupSetName> <host> <disk> <YYYYMMDDHHMMSS> amfetchdump DailySet1 the-black-pearl "C:/Documents and Settings/Ben/My Documents/My Pictures" 20090616221051 amfetchdump DailySet1 the-black-pearl "C:/Documents and Settings/Ben/My Documents/My Pictures" 20090617184102 amfetchdump DailySet1 the-black-pearl "C:/Documents and Settings/Ben/My Documents/" 20090820111615
returns:
amandabackup@data-server:~/restore$ amfetchdump DailySet1 the-black-pearl "C:/Do 1 tape(s) needed for restoration The following tapes are needed: DailySet1-1 Press enter when ready amfetchdump: slot 1: time 20090616221051 label DailySet1-1 (exact label match) Scanning volume DailySet1-1 (slot 1) amfetchdump: 1: restoring FILE: date 20090616221051 host the-black-pearl disk "C
this will put a file in your current working directory change it's extension to .tar and unzip with WinRAR
will generate a report and mail it to amanda admin
amreport DailySet1
will generate a report and send it to
amreport DailySet1 -M ben@bcspcsonline.com
force level 0 backup on next amdump run
amadmin DailySet1 force the-black-pearl
Delete the specified disks on hostname from the Amanda database
amadmin DailySet1 delete the-black-pearl "C:/Documents and Settings/Ben/My Documents/My Pictures"
send e-mails to a good address
There was an issue with the windows client where incremental backups would always perform full dumps, this has been fixed in version 2.6.1p2. See this thread