Amanda log files/Trace Logs

From wiki.zmanda.com
Revision as of 18:55, 31 May 2007 by Dustin (talk | contribs) (copied from parent article)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Each dump or flush creates a file named log.YYYYMMDD.N in the logdir directory, where YYYYMMDD is the datestamp of the start of the amdump/amflush run, and N is a sequence number starting at 0.

This log file is used for generating backup reports with amreport, as well as tracking what dumps with amadmin - find.

Each line in the file begins with a keyword. Depending on the keyword, rest of the line is parsed. Backup statistics can be obtained from this log file.

Do not delete these log files! Removing them means you cannot use Amanda tools to locate older backups (the information to restore the most recent backup is kept in the curinfo database, and is read by "amadmin xx info").

At the end of a run, logfiles for runs whose tapes have been reused are moved into a subdirectory named oldlog inside the logdir directory. This is done by amtrmlog, which is called by the amdump shell script. It is up to the administrator to remove older log files from the oldlog subdirectory.