Description

This function restores email filters or forwarder backups.

Examples




$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$restore_filter = $cpanel->api1('Fileman', 'restoreaf', array('public_html','file-aliases.example.com.gz'); // Call the function.



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $restore_filter = $cpliveapi->api1('Fileman', 'restoreaf' ['public_html', 'file-aliases.example.com.gz]); # Call the function.


<cpanel Module="Fileman::restoreaf ( $FORM('dir','file'))">




cpapi1 --user=username Fileman restoreaf public_html file-aliases.example.com.gz


The contents of the uploaded file.



Parameters

ParameterTypeDescriptionPossible valuesExample
dirstring

The directory in which to store the uncompressed file backups.

This value defaults to the account's /home directory.

Any valid directory name.public_html
filestring

Required

The backup file to restore.

 

Any valid backup filename.

This parameter's values must start with file-.


file-aliases.example.com.gz

Returns

This function returns the uploaded file's contents.