1. Go to this page and download the library: Download imafaz/netback library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
imafaz / netback example snippets
use NetBack\IBSng;
$ibsng = new IBSng('IBSngDevice', '192.168.1.1', 'username', 'password', 22);
$ibsng->backup('/path/to/local/backup.sql');
use NetBack\Mikrotik;
$mikrotik = new Mikrotik('MikrotikDevice', '192.168.1.2', 'username', 'password', 22);
$mikrotik->backup('backupName', '/path/to/local/backup.backup');
use NetBack\xui;
$xui = new xui('xuiDevice', '192.168.1.3', 'username', 'password', 22);
$xui->backup('/path/to/local/xui.db');
$ibsng = new IBSng(string $name, string $ip, string $username, string $password, int $port);
$ibsng->backup(string $localPath);
$mikrotik = new Mikrotik(string $name, string $ip, string $username, string $password, int $port);