Actions: Network
Network refers here to network devices like switches, routers, NAS...
Custom CAs in requests
By default, the mdbackup tool uses the stock Mozilla's CA bundle instead of the system one. If your system has configured custom CA's and want to use them, set this environment variable (Debian/Ubuntu):
See this answer from StackOverflow...
asuswrt
Input: Nothing
Output: stream
Unaction: No
Parameters
| Name | Type | Description | Optional |
|---|---|---|---|
host |
str |
IP (or hostname) of the Asus router | No |
port |
int |
Port where the http server is listening | Yes |
user |
str |
Router's user | No |
password |
str |
Router's password | No |
backupType |
str |
Type of the backup: configuration or jffs |
No |
secure |
bool |
If set to true, will use https instead of http |
Yes |
verify |
bool | str |
See this | Yes |
Description
Does a backup from an AsusWRT router through its web admin panel. The file is downloaded and piped to the next action.
Warning
When doing this action, the router cannot have an active session open. The login from the tool can fail if an active session is still open elsewhere.
requests package required
In order to use this action, the requests package must be installed manually.
Example
Backup the jffs partition.
Example
Backup the configuration.
Example
Backup with self-signed certificate and using HTTPS, but not verifying the certificate
mikrotik
Input: Nothing
Output: stream
Unaction: No
Parameters
| Name | Type | Description | Optional |
|---|---|---|---|
backupType |
str |
Type of the backup (see description) | Yes |
It also accepts any of the parameters of ssh and from-file-ssh.
Important parameters
Even though not all parameters are listed, required parameters are host, user and either password or identityFile.
Description
Does a backup of a Mikrotik device with RouterOS. The type of backup can be full-backup, scripts, system-config or global-config. The action first runs the command to make the backup and then runs the action from-file-ssh which will download the file from the device.
Warning
The action writes files into the device storage but it does not remove them. They can be removed using a post task hook.