Using amadmin command to perform administrative task on the backup server:
1. amadmin x version #show all the amanda installation information
-bash-3.00$ amadmin x version build: VERSION="Amanda-2.5.0" BUILT_DATE="Fri Apr 21 08:19:46 PDT 2006" BUILT_MACH="Linux bugs.zmanda.com 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT 2005 i686 i686 i386 GNU/Linux" CC="gcc" paths: bindir="/usr/bin" sbindir="/usr/sbin" libexecdir="/usr/lib/amanda" mandir="/usr/man" AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda" CONFIG_DIR="/etc/amanda" DEV_PREFIX="/dev/" RDEV_PREFIX="/dev/" DUMP="/sbin/dump" RESTORE="/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF VXRESTORE=UNDEF SAMBA_CLIENT="/usr/bin/smbclient" STAR="/usr/bin/star" GNUTAR="/bin/gtar" COMPRESS_PATH="/bin/gzip" UNCOMPRESS_PATH="/bin/gzip" LPRCMD="/usr/bin/lpr" MAILER="/usr/bin/Mail" listed_incr_dir="/var/lib/amanda/gnutar-lists" defs: DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1" DEFAULT_TAPE_SERVER="localhost" DEFAULT_TAPE_DEVICE="null:" HAVE_MMAP HAVE_SYSVSHM LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS CLIENT_LOGIN="amandabackup" FORCE_USERID HAVE_GZIP COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast" COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc" -bash-3.00$
2. amadmin DailySet1 info "client_hostname" #display the latest backup record for each of the disks on a certain client and config
-bash-3.00$ amadmin tapetwo info ppragin Current info for ppragin /boot: Stats: dump rates (kps), Full: 974.0, 1461.0, 1461.0 Incremental: -1.0, -1.0, -1.0 compressed size, Full: 80.5%, 80.5%, 80.5% Incremental: -100.0%,-100.0%,-100.0% Dumps: lev datestmp tape file origK compK secs 0 20060505 WeeklyTape-02 1 3630 2922 3 Current info for ppragin /var: Stats: dump rates (kps), Full: 1556.8, 2043.1, 737.4 Incremental: -1.0, -1.0, -1.0 compressed size, Full: 38.8%, 38.8%, 38.8% Incremental: -100.0%,-100.0%,-100.0% Dumps: lev datestmp tape file origK compK secs 0 20060505 WeeklyTape-02 3 252510 98076 63 Current info for ppragin /etc: Stats: dump rates (kps), Full: 860.0, 1016.5, 201.4 Incremental: -1.0, -1.0, -1.0 compressed size, Full: 22.6%, 22.6%, 22.6% Incremental: -100.0%,-100.0%,-100.0% Dumps: lev datestmp tape file origK compK secs 0 20060505 WeeklyTape-02 2 99000 22361 26 -bash-3.00$
3. amadmin DailySet1 find "client_hostname" #this show all backups currently on tape or in the holding disk for all backed up file systems for client host
-bash-3.00$ amadmin tapetwo find ppragin Scanning /var/lib/amanda/holdings... Scanning /var/lib/amanda/holdings... date host disk lv tape or file file part status 2006-05-04 17:50:20 ppragin /boot 0 WeeklyTape-04 1 -- OK 2006-05-04 18:27:38 ppragin /boot 0 WeeklyTape-01 1 -- OK 2006-05-05 09:34:15 ppragin /boot 0 WeeklyTape-02 1 -- OK 2006-05-04 17:50:20 ppragin /etc 0 WeeklyTape-04 2 -- OK 2006-05-04 18:27:38 ppragin /etc 0 WeeklyTape-01 2 -- OK 2006-05-05 09:34:15 ppragin /etc 0 WeeklyTape-02 2 -- OK 2006-05-04 17:50:20 ppragin /var 0 WeeklyTape-04 3 -- OK 2006-05-04 18:27:38 ppragin /var 0 WeeklyTape-01 3 -- OK 2006-05-05 09:34:15 ppragin /var 0 WeeklyTape-02 3 -- OK -bash-3.00$
4. amadmin DailySet1 due "client_hostname" #this shows when the next full backup is due for the client host
-bash-3.00$ amadmin tapetwo due ppragin Due in 3 days: ppragin:/boot Due in 3 days: ppragin:/var Due in 3 days: ppragin:/etc -bash-3.00$
-bash-3.00$ amadmin pavel due ppragin Overdue 7 days: ppragin:/boot Overdue 9 days: ppragin:/etc Overdue 3 days: ppragin:/var -bash-3.00$
5. amadmin DailySet1 force "client_hostname" /boot #force full backup on /boot filesystem on client host when next amdump runs
-bash-3.00$ amadmin tape force ppragin /home amadmin: ppragin:/home is set to a forced level 0 at next run. -bash-3.00$
6. amadmin DailySet1 tape #shows the tape to write to during the next run
-bash-3.00$ amadmin tapetwo tape The next Amanda run should go onto a new tape. The next new tape already labelled is: WeeklyTape-03. -bash-3.00$
7. amadmin DailySet1 disklist # shows all the info about the clients in the disklist
-bash-3.00$ amadmin tapetwo disklist line 1: host ppragin: interface default disk /boot: program "GNUTAR" priority 1 dumpcycle 4 maxdumps 1 maxpromoteday 10000 bumppercent 20 bumpdays 1 bumpmult 4.000000 strategy NOINC estimate CLIENT compress CLIENT FAST comprate 0.50 0.50 encrypt NONE auth BSD kencrypt NO amandad_path X client_username X holdingdisk YES record YES index YES fallback_splitsize 10Mb skip-incr NO skip-full NO