A backup is a ZIP file with the whole configuration of the device, downloaded to your computer. A snapshot is the same kind of archive, kept on the device itself, made by hand or on a schedule. Both can be restored on the same device or on a replacement device.
A backup contains the user accounts and the credentials saved in the gateways (passwords, keys, tokens). Store it like a password, and only send it to people you trust.
Weble IoT gateway-<date>.zip.The menu icon (☰) of the System tab gives the same file with Export system configuration.
| Included | Not included |
|---|---|
The whole configuration folder of the device: gateways, addresses, routes and route functions, logic, views, user accounts and roles. The settings of the System configuration form (config.sup). The network configuration file, restored only on request (see below). |
The licences of the device and its factory password, which stay attached to the device. The VPN identity of the device, which is never restored (see below). The software itself. |
On Linux devices the backup also holds an encrypted copy of the identity of the device (VPN keys, model). Only the Weble Cloud can read it, for example to build an OS update image for a device that has no Cloud access. It is never restored on a device.
The device erases its current configuration before it extracts the archive. If the file is not a valid backup of a Weble IoT gateway, the device restarts with an empty or incomplete configuration. Make a backup of the current state first, and restore only files made by Backup or by the snapshot manager.
The role of the account must allow the restore, and also the sending of code (routes and functions are part of the backup).
On Windows installations, Apply network configuration cannot be changed: the network settings are those of Windows.
A backup can be restored on another device of the same type, for example to replace a faulty device:
Open System › System snapshots, or click Manage snapshots in the System action box.
The window lists the snapshots stored on the device, with their date. Select a row to use the buttons:
| Button | Action |
|---|---|
| New snapshot | Makes a snapshot of the current state now. |
| Restore | Restores the selected snapshot, after confirmation. The device restarts. |
| Download | Downloads the snapshot as a ZIP file, to keep it off the device or to restore it elsewhere with Restore. |
| Remove | Deletes the snapshot. |
Restoring a snapshot also restores the network configuration saved in it, unlike the manual Restore of a backup. If the address of the device was changed since the snapshot, the device comes back on its old address.
Snapshots are stored on the device, outside its configuration folder: a factory reset keeps them.
The Automated periodic snapshots form of the same window makes snapshots on a schedule. Click Confirm change to save it.
| Parameter | Default | Description |
|---|---|---|
| Enable | off | Turns the scheduled snapshots on. |
| Cron | (empty) | When to make a snapshot, in standard cron syntax (minute, hour, day of month, month 1 to 12, day of week with Sunday = 0 or 7). Example: 0 3 * * * every day at 03:00; 0 2 * * 0 every Sunday at 02:00. |
| Max files number | 10 |
Number of scheduled snapshots kept on the device. The oldest are deleted. Snapshots made by hand are not counted and never deleted automatically. |
| Only changes | on | Skips the snapshot when nothing changed since the last one. |
| Cloud sync. | off | Also sends each snapshot to the Weble Cloud. |
| Send on FTP/SFTP Server | off | Also uploads each snapshot to your own server. |
| Server protocol | FTP or SFTP. Prefer SFTP: FTP sends the password and the file unencrypted. | |
| Host, Port | Address and port of the server. | |
| Path | Folder on the server. | |
| File prefix | Text added in front of the file name, for example the name of the site. | |
| Username, Password | Account on the server. Use an account that can only write to this folder. |
Always make a backup and download it to your computer before a software update or an OS update. A snapshot alone is not enough for an OS update, since it stays on the device.
The Factory reset button of the System action box erases the configuration but keeps the licences, the network configuration and the stored snapshots. See Reset to defaults.
GET /system/backup downloads a backup; GET /system/snapshot/<name> downloads a snapshot.POST /system/restore restores a ZIP file sent in the form field file; add applyNetwork=1 to restore the network configuration too.The account needs the backup or restore right in its role. See REST API: system, with a script for a nightly off-site backup.