This article is for Amanda Enterprise (AE) v. 3.1 and 3.3
If your Amanda Enterprise installation becomes damaged, you must reinstall and reconfigure the software. Having a backup helps to quickly bring your server back to a working state.
You should store your server backup separate from the Amanda server so that it is readily accessible if the server goes down.
The zm-support script will archive a copy of most files necessary to restore an Amanda Enterprise server if invoked as follows:
This creates an archive named zm-logs-*.tar.gz in your current working directory.
If you have very large index files, you may consider omitting –all-log-files and storing them separately. Because the index files are already gzip compressed, do not compress them a second time:
tar cvf zm-index-$(date "+%Y%m%d%H%M%S").tar -C / etc/amanda/*/index
If you use server-side encryption, you will also want to archive the /var/lib/amanda directory particularly the .am_passphrase file. You can create an archive this way:
tar cvzf --one-file-system amandabackup-$(date "+%Y%m%d%H%M%S").tar.gz -C / /var/lib/amanda
Follow this procedure for restoring from your Amanda server backup.