$jobids = property_exists($params, 'jobids') ? $params->jobids : null;
$fileids = property_exists($params, 'fileid') ? $params->fileid : null;
$dirids = property_exists($params, 'dirid') ? $params->dirid : null;
+ /**
+ * Name for findex is wrong. In the next version of API change it
+ * from 'findex' into 'hardlink'.
+ */
$findexes = property_exists($params, 'findex') ? $params->findex : null;
+ $fileindexes = property_exists($params, 'fileindex') ? $params->fileindex : null;
$objectids = property_exists($params, 'objectid') ? $params->objectid : null;
$path = property_exists($params, 'path') ? $params->path : null;
if (is_string($findexes)) {
array_push($cmd, 'hardlink="' . $findexes . '"');
}
+ if (is_string($fileindexes)) {
+ array_push($cmd, 'fileindex="' . $fileindexes . '"');
+ }
if (is_string($objectids)) {
array_push($cmd, 'objectid="' . $objectids . '"');
}
{
"name": "findex",
"in": "body",
- "description": "Comma seprated directory file indexes",
+ "description": "For using restore with preserved hardlink. Comma seprated file indexes together with corresponding jobids in form jobid1,fileindex1,jobid2,fileindex2...etc.",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
+ {
+ "name": "fileindex",
+ "in": "body",
+ "description": "For restoring by file index. Comma seprated file indexes together with corresponding jobids in form jobid1,fileindex1,jobid2,fileindex2...etc.",
"required": false,
"schema": {
"type": "string"