Audit
The audit command is being removed in a future release as HashBackup’s log files have more detailed audit information. |
Displays the audit log, showing details about every command executed. The audit log entries cannot be changed.
$ hb audit [-c backupdir] [-a]
With the -a
option, the entire audit log is displayed. Otherwise,
only the last 5 entries are displayed.
The init
, clear
, and upgrade
commands cannot be audited: the
init
and clear
commands initialize the database (and therefore the
audit log), and the upgrade
command is not associated with a
particular backup, so there is no database to save audit information.
Example
[jim@mb]$ hb audit -c hb
Backup directory: /Users/jim/hb
Showing recent history
Started: Mon 2012-11-19 15:40:26
Build: 764
Uid: 501 (jim)
Gid: 20 (staff)
Working dir: /Users/jim
Command: backup -c hb doc
Finished: Mon 2012-11-19 15:40:27
Exitcode: 0
Started: Mon 2012-11-19 15:40:32
Build: 764
Uid: 501 (jim)
Gid: 20 (staff)
Working dir: /Users/jim
Command: ls -c hb
Finished: Mon 2012-11-19 15:40:32
Exitcode: 0