Amanda::Restore -- interface to restore backup
use Amanda::Restore;
($self->{'restore'}, my $result_message) = Amanda::Restore->new();
if (@$result_message) {
foreach my $message (@$result_message) {
$self->user_message($message);
}
return $params{'finished_cb'}->(1);
}
$self->{'restore'}->restore(
'application_property' => $params{'application_property'},
'assume' => $params{'assume'},
'client-decompress' => $params{'client-decompress'},
'client-decrypt' => $params{'client-decrypt'},
'compress' => $params{'compress'},
'compress-best' => $params{'compress-best'},
'data-path' => $params{'data-path'},
'decompress' => $params{'decompress'},
'decrypt' => $params{'decrypt'},
'device' => $params{'device'},
'target' => $params{'target'},
'dumpspecs' => $params{'dumpspecs'},
'exact-match' => $params{'exact-match'},
'extract' => $params{'extract'},
'extract-client' => $params{'extract-client'},
'header' => $params{'header'},
'header-fd' => $params{'header-fd'},
'header-file' => $params{'header-file'},
'init' => $params{'init'},
'leave' => $params{'leave'},
'no-reassembly' => $params{'no-reassembly'},
'pipe-fd' => $params{'pipe-fd'} ? 1 : undef,
'restore' => $params{'restore'},
'server-decompress' => $params{'server-decompress'},
'server-decrypt' => $params{'server-decrypt'},
'finished_cb' => $params{'finished_cb'},
'interactivity' => $params{'interactivity'},
'reserve-tapes' => $params{'reserve-tapes'},
'release-tapes' => $params{'release-tapes'},
'feedback' => $self);
Application properties to add when extracting.
Assume all tapes are already available, do not ask for them.
Directory where to restore.
Decompress only if it is client compressed.
Decrypt only if it is client encrypted.
Compress fast the backup image.
Compress best the backup image.
The datapath to use when extracting.
Always decompress if compressed.
Always decrypt if encrypted.
Delay in milliseconds between progress update, default to 15000 (15 seconds)
Directory where to extract.
Run the extraction on the server.
Run the extraction on the client.
Callback to call when all restore are done.
Send the header to the same stream as the backup.
Fd where to send the header.
Filename where to put the header.
Prepare for a restore, some device require it for faster restore.
An interactivity module
Leave the backup as it is (compressed/encrypted)
Do not re-assemble split dump
A fd where to send the dump
Release the tapes already reserved for the restore
Reserve the tapes needed for the restore
Set to 0 to not do the restore, undef will do the restore. use with 'init'.
Decompress only if it is server compressed
Decrypt only if it is server encrypted
The fd where to read the backup (do not read from device).
The feedback must Implement the Amanda::recovery::F
A function that get an Amanda::Message as argument, it must be sent to the user.
A function called withthe initial changer as first argument.
A function called to notify when a new dump is started. First argument is the dump.
A function to retrieve the header, the header is returned.
A function to clean the header for compatibility. The first argument is a reference to the header.
This function is called after clean_hdr and before send_header. First argument is header. Second argument is dle. Third argument is application_property.
A function to send the header (first argument).
A function to send/receive the state file (the first argument is the header).
A function to exchange dar setting. The first argument is out DAR setting. Return 1 if DAR must be used. Return 0 if DAR must not be used.
First argument if 1 if we support direccttcp. Return 1 if other side also support directtcp.
Allow to change the $dest_fh
A function that create and return the xfer_dest
return the fd of the MESG stream
return 1 if the MESG stream is in JSON
return the stdout of the application
return the stderr of the application
A function to start reading DAR request
A function to send/receive aggrement on the amanda datapath
A function to send/receive aggrement on the directtcp datapath
A function to notify the start of a restore, it is called after send_*_datapath
Start read fromthe application CTL stream The first argument is a callback that must be called with lien like: 'DAR offset:length'
A function to send a 'DAR offset:length' line
A function to run an applicationwith directtcp datapath
A function to run the PRE-*-RECOVER scripts
A function to run the POST-*-RECOVER scripts
This page was automatically generated Tue Mar 19 07:08:17 2019 from the Amanda source tree, and documents the most recent development version of Amanda. For documentation specific to the version of Amanda on your system, use the 'perldoc' command.