Both ways are very simple.
1. SSH/SCP - you will have text script-backup
1) By SSH, create and store script file
script -create -name=script.txt
2) By SCP (ex, from PuTTY) get script file to PC
scp.exe <user>@<dfl address>:script.txt <your local file>
2. HTTP - you will have backup
Very simple script on PHP using cURL. Variables $user, $pass, $host and $cookiefile should be filled
<?php
$ch=curl_init();
curl_setopt($ch,CURLOPT_FAILONERROR,false);
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_TIMEOUT,3);
curl_setopt($ch,CURLOPT_COOKIESESSION,true);
curl_setopt($ch,CURLOPT_COOKIEFILE,$cookie_file);
curl_setopt($ch,CURLOPT_COOKIEJAR,$cookie_file);
curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6');
curl_setopt($ch,CURLOPT_URL,$host);
curl_setopt($ch,CURLOPT_POST,true);
curl_setopt($ch,CURLOPT_POSTFIELDS,"UserName=$user&UserPass=$pass&UserLang=en");
if($s=curl_exec($ch)){
if(preg_match($s,'Authentication Required')) throw new Exception('Authentication failed');
curl_setopt($ch,CURLOPT_URL,$host.'?Page=BackupAction&Action=DownloadConfiguration');
curl_setopt($ch,CURLOPT_POST,false);
if($s=curl_exec($ch)){
// $s contains backup contents
}
}
?>