amanda miscellany
Tuesday, January 31st, 2006Interesting commands:
# su amanda -c “amadmin CCH1 find –sort b”
Show all available backups
# su amanda -c “amstatus CCH1″
Show running/last status
# find /var/log/amanda -type f -mtime +25 -exec rm {} \;
Prune old debug files (>> tapecycle)
# find /var/lib/amanda/CCH1/oldlog/log.* -type f -mtime +25 -exec rm {} \;
Prune old log files (>> tapecycle)
# amreport CCH1 -l /var/lib/amanda/CCH1/log.20060207.0 -f /tmp/t; view /tmp/t
Show status of last run
# su amanda -c “amcheckdb CCH1″
Check tape list against DB
# su amanda -c “amoverview CCH1″
Show summary of recent runs
# su amanda -c “amplot /var/lib/amanda/CCH1/log.*”
Plot summary of runs
# su amanda -c “amtoc -t -f - /var/lib/amanda/CCH1/log.20060208.0″
Show contents of tape run
# su amanda -c “amadmin CCH1 due triumph /home”
Show next level 0 dump
# su amanda -c “amadmin CCH1 disklist triumph /home”
Show config for DLE
# su amanda -c “amadmin CCH1 tape -days 5″
Show next tape required
# su amanda -c “amcheck CCH1″
Show config for DLE
