Amindexd protocol

From The Open Source Backup Wiki (Amanda, MySQL Backup, BackupPC)

Jump to: navigation, search

The protocol talked between amindexd and amrecover is a simple ASCII chat protocol based on that used in FTP. amrecover sends a 1 line command, and amindexd replies with a 1 line or multi-line reply. Each line of the reply starts with a three digit code, starting with a '5' if an error occurred. For 1 line replies, and the last line of a multi-line reply, the 4th character is a space. For all but the last line of a multi-line reply, the 4th character is a '-'.

The commands and replies other than acknowledgments are:

CommandDescription
Protocol between amindexd and amrecover
QUITfinish up and close connection
HOST <host>set host to host
DISK <disk>set disk to disk
LISTDISK [<device>]list the disks for the current host
SCNF <config>set AMANDA configuration to config
DATE <date>set date to date
DHSTreturn dump history of current disk
OISD <dir>Opaque is directory? query. Is the directory dir present in the backups of the current disk back to and including the last level 0 dump.
OLSD <dir>Opaque list directory. Give all filenames present in dir in the backups of the current disk back to and including the last level 0 dump.
ORLD <dir>Opaque recursive list directory. Give all filenames present in dir and subdir in the backups of the current disk back to and including the last level 0 dump.
TAPEreturn value of tapedev from amanda.conf if set.
DCMPreturns "YES" if dumps for disk are compressed, "NO" if dumps aren't.

Other languages: English  • Fran├žais


Personal tools