In the meantime I was able to find a solution to this problem using PHP.
I'd like to document this in case anyone else is struggling with this problem.
This description only documents the solution for performing a configuration upload , ssl and security settings are not part of the description.
The upload to a https destination uses the POST method.
I used Apache 2.4 ( from https://www.apachehaus.com ) on Windows and PHP for Apache version 8.1.9 (from www.php.net).
After installing Apache and unpacking the PHP package rename the file php.production to php.ini.
- Modify php.ini and set:
memory_limit = 250M
sys_temp_dir = < your temp directory >
file_uploads = on
upload_max_filesize = 100M
- To activate PHP modify the Apache httpd.conf file:
PHPIniDir "c:/php"
LoadModule php_module "c:/php/php8apache2_4.dll"
AddHandler application/x-httpd-php .php
- In the Apache htdocs directory create a directory backup
- In the Apache htdocs directory create a file backup.php:
<html>
<body>
<?php
$pathinfo = $_SERVER['PATH_INFO'];
$destination = 'backup'.$pathinfo;
file_put_contents($destination, file_get_contents('php://input'));
file_put_contents('php://stderr',print_r($destination,TRUE));
file_put_contents('php://stderr',print_r(PHP_EOL,TRUE));
?>
</body>
</html>
- Now you can backup the cluster configuration on the NAS filer:
set adv
system configuration backup show
system configuration backup upload -node <NAS-node> -backup <configuration.7z> -destination https://web-server/backup.php