Amindexd protocol

From wiki.zmanda.com
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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:

Command Description
Protocol between amindexd and amrecover
QUIT finish 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
DHST return 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.
TAPE return value of tapedev from amanda.conf if set.
DCMP returns "YES" if dumps for disk are compressed, "NO" if dumps aren't.

Other languages: [[::Amindexd protocol|English]] {{#ifexist: {{#if: | | {{#if: | :}}Amindexd protocol}}/Fr |  • {{#if: |français| [[::Amindexd protocol/Fr|français]]}}|}}

{{#ifexist: {{#if: | | {{#if: | :}}Amindexd protocol}}/Zh-cn |  • {{#if: |中文(中国大陆)| [[::Amindexd protocol/Zh-cn|中文(中国大陆)]]}}|}}