|
|
Line 1: |
Line 1: |
| ==SYNOPSIS==
| | See {{man|8|amserverconfig}}. |
| amserverconfig config [--template template] [--tapetype tapetype] [--tpchanger tpchanger] [--tapedev tapedev] [--changer-file changerfile] [--changerdev changerdev] [--labelstr labelstr] [--mailto mailto] [--dumpcycle dumpcycle] [--runspercycle runspercycle] [--runtapes runtapes] [--tapecycle tapecycle] [--help]
| |
| | |
| ==DESCRIPTION==
| |
| | |
| After Amanda rpm is successfully installed, amserverconfig will setup initial Amanda configuration files. It will
| |
| create /var/lib/amanda/guntar-lists directory if one does not exist. amserverconfig does not change existing Amanda configurations.
| |
| amserverconfig must be run by user amandabackup.
| |
| | |
| ==OPTIONS==
| |
| | |
| Options may be abbreviated, as long as the abbreviation is not ambiguous. Option argument can either separated by ’=’ or a space.
| |
| Example: --templ=harddisk
| |
| | |
| amserverconfig creates a backup set. Customize the configuration with the options below.
| |
| | |
| ; --template template : build Amanda configuration with pre-configured template files. Currently, harddisk, single-tape and tape-changer are the valid inputs for this option. Pre-configured template files can be found in /var/lib/amanda/template.d. If this option is used, other options supplied will be ignored.
| |
| | |
| : If tape-changer is chosen for this option, program mtx is required. amserverconfig will search for mtx in the following directory: "/usr/sbin", "/usr/local/sbin", "/usr/local/bin", "/usr/bin", "/bin" and amandabackup's PATH.
| |
| | |
| ;--tapedev tapedev : The path name of non-rewinding tape device. Default [file://var/lib/amanda/vtapes/$config]
| |
| | |
| : If --template=harddisk is chosen, amserverconfig will create and label virtual tape file://var/lib/amanda/vtapes/$config.
| |
| | |
| ;--tpchanger tpchanger : The name of the tape changer. The default is "chg-disk" for vtape. If you are using real tape changer use "chg-zd-mtx".
| |
| | |
| ;--changerdev changerdev : A tape changer configuration parameter. default [/dev/null]
| |
| | |
| ;--changerfile changerfile : A tape changer configuration parameter. default [/etc/amanda/$config/changer.conf]
| |
| | |
| ;--labelstr labelstr : The tape label constraint regular expression. default [^$config-[0-9][0-9]*$].
| |
| If this option is used with --template=harddisk, only alphanumeric string is supported.
| |
| | |
| ;--tapetype tapetype : The type of tape drive associated with tapedev or tpchanger. default [HARDDISK]
| |
| | |
| ;--mailto mailto : A space separated list of recipients for mail reports. default [amandabackup]
| |
| | |
| ;--dumpcycle dumpcycle : The number of days in the backup cycle. default [1week]
| |
| | |
| ;--runspercycle runspercycle : The number of days in the backup cycle. default [5]
| |
| | |
| ;--runtapes runtapes : The maximum number of tapes used in a single run. default [1]
| |
| | |
| ;--tapecycle tapecycle : The size of tape rotation. default [25]
| |
| | |
| ;--help : Display usage.
| |
| | |
| ==Examples for amserverconfig==
| |
| | |
| ====For Single tape drive configuration====
| |
| | |
| Configuration Information:
| |
| | |
| 1. Single DLT tape drive (Device Name: /dev/nst0)
| |
| | |
| 2. 6 DLT tapes
| |
| | |
| 3. Using dumptype "comp-user-tar" compressed backups :
| |
| | |
| Use the amservercofig script to create Single Tape Drive Configuration
| |
| | |
| amserverconfig SingleDrive --template single-tape --tapedev /dev/nst0 --mailto [email protected] | |
| --dumpcycle 1week --runspercycle 5 --tapecycle 6
| |
| | |
| '''
| |
| | |
| ====For Tape Library Configuration====
| |
| | |
| | |
| 1. Use the amservercofig script to create a Tape Changer Configuration
| |
| amserverconfig DailyBackup --template tape-changer
| |
| | |
| | |
| ====For Vtape Configuration====
| |
| | |
| As user root:
| |
| | |
| 1.Create holding disk and vtape directory:
| |
| | |
| [root@quartz ~]# mkdir -p /data/amanda/hold
| |
| [root@quartz ~]# mkdir -p /data/amanda/vtape/DailySet1
| |
| [root@quartz ~]# chown -R amandabackup:disk /data/amanda/hold
| |
| [root@quartz ~]# chown -R amandabackup:disk /data/amanda/vtape/DailySet1
| |
| [root@quartz ~]# chmod -R 750 /data/amanda/hold
| |
| [root@quartz ~]# chmod -R 750 /data/amanda/vtape/DailySet1
| |
| | |
| As user amandabackup run amserverconfig to create a vtape configuration:
| |
| amserverconfig DailySet1 --template harddisk --tapedev /data/amanda/vtape/DailySet1 --mailto admin@localhost
| |
| --runtapes 25
| |
| | |
| ==SEE ALSO==
| |
| | |
| [[amaddclient]](8), [[amverify]](8)
| |