Equipment backups

Central daily backup for the configuration of your network equipment: AI-powered automatic discovery, encrypted credential vault, history with diff and smart retention.

Overview New in 7.2 Master only

The Backups environment keeps, every day, a copy of the configuration of your routers, switches, OLTs and other equipment with SSH access, from any vendor. Besides keeping the snapshot, it answers the most important question after an incident: what changed on this equipment and when. Every configuration change becomes an entry on the timeline, with a line-by-line diff.

To open it, use the Backups item in the main menu. The module is exclusive to the Master user: the menu item does not even appear for other users, and there is no per-access-group release. This is a security decision, since the backup files contain the complete network configuration.

The main screen

At the top of the screen you have the Density selector (Compact, Comfortable or Spacious, the choice is saved in the browser), the Search equipment… field (filters by IP, brand, model or detected operating system) and the Add button.

Right below, five cards summarize the health of the environment:

CardWhat it shows
EquipmentTotal equipment registered in the module.
Backup in 24hHow many have a backup completed successfully in the last 24 hours.
No supportHow many were marked as an unsupported model.
In failureHow many failed on the last backup attempt.
Disk usageTotal space taken by the stored backup files.

The equipment list has the columns BRAND / MODEL / OS, STATUS, LAST BACKUP (date, time and size), CHANGES (days with a change in the last 3 days) and ACTIONS. On mobile screens the table turns into cards. The list refreshes itself every 30 seconds.

Possible equipment statuses

StatusMeaning
PendingJust registered, waiting for discovery to start.
Configuring…Automatic discovery is in progress.
Backup activeThe system knows how to back up this equipment and runs it daily.
No supportIt was not possible to configure the backup for this equipment. The reason appears next to the status and in the detail.
FailureThe last backup or discovery attempt failed. The reason is recorded in the progress panel of the detail.

Detail panel

Clicking a row (or View detail in the actions menu) opens the equipment panel, with the ← Equipment button to go back. The detail brings together:

  • Discovery progress: a live log of the automatic configuration events, including the reason for the last failure when there is one.
  • Backup list: the stored files, with date, size, counters of changed lines and the Download and Delete buttons.
  • Change timeline: the day-by-day history of what changed in the configuration (see Timeline and diff).

In the detail header you have the buttons Backup now (available when the backup is already configured), Edit access, Redo discovery and Delete.

If the global system option to display IPs is turned off, the IP of equipment with an active backup appears masked as ***. Equipment that has not been configured yet still shows the IP, to make diagnosis easier.


Credential vault New in 7.2

The vault is the single base of network equipment access credentials (SSH and Telnet) in Ravicor. Each equipment registered in Backups corresponds to a credential in the vault, and the central list is, in practice, the vault list. It has no screen of its own: it is fed and consumed by the modules that need to access equipment.

  • Backups: the Add equipment and Edit access modals write the credential into the vault.
  • Flow: when you register an exporter (manually or through the AI chat), the credential you provide goes to the vault and the equipment is automatically added to the Backups environment.
  • Flow forensic capture: uses the vault credential to collect traffic on the router during an attack.
  • AI Copilot: uses the vault to access equipment in agentic actions.

Credential security

  • The password is encrypted before it is stored. The encryption key stays on the server, outside the public area of the site.
  • The password is decrypted only in memory, at the moment of use, and is never sent to the browser: the interface only signals that a saved password exists.
  • Each record stores IP, port, user, encrypted password, protocol (SSH or Telnet), authentication method (password or system key), brand, model and the source module.
  • The vault is deduplicated by IP and port: registering the same IP:port in two modules updates the same record, without creating a duplicate. Fields left blank preserve the previous value.

The same IP on different ports counts as distinct accesses, and therefore as distinct equipment in the Backups module.


Add equipment

Registering equipment means telling Ravi how it reaches the device over SSH. Everything else (identifying the brand, the model and the right way to extract the configuration) the system figures out on its own.

  1. In the menu, open Backups.
  2. Click Add. The Add equipment modal opens.
  3. Fill in the access fields (table below) and confirm.
  4. The credential goes encrypted to the vault, the equipment enters as Pending and automatic discovery fires right away, within seconds. Follow it through the Discovery progress panel in the detail.
FieldWhat to provide
IP / HostIP address of the equipment. It must be a valid IP: a hostname is not accepted.
PortSSH port of the equipment. Default: 22.
UserLogin user on the equipment. Required.
AuthenticationPassword or System key. When you choose the key, the Password field disappears; the system public key must be installed on the equipment (see System SSH key).
PasswordUser password. Required in password mode.
BrandOptional. Searchable selector with the known brands: Mikrotik (RouterOS), Cisco (IOS/IOS-XE/NX-OS), Huawei (VRP: NE, S-series, AR, OLT), Juniper (Junos), Nokia (SR OS/TiMOS), ZTE (ZXROS), Datacom (DmOS), FiberHome (AN6000/AN5516), Ubiquiti (EdgeOS/EdgeRouter), Arista (EOS), Fortinet (FortiOS), Palo Alto (PAN-OS), Intelbras, Parks, plus "Linux (generic), no backup" and "Other brand".
ModelOptional. Example: CCR1036.

Providing brand and model is optional, but it speeds up and lowers the cost of the configuration: if the model is already known by the system catalog, the backup is activated directly, without using AI.

The IP / Host field requires a valid IP. If the equipment is known by hostname, resolve the name and register the IP.

Edit access

The Edit access button (in the list row or in the detail) opens the same modal with the current data. Particulars:

  • A blank password keeps the current password: only fill in the field if you want to change the password.
  • If IP or port changes, the system understands it may be a different piece of equipment: it discards the learned backup configuration and redoes discovery from scratch. The old files and timeline remain.
  • If only the user, password or authentication method changes, the configuration is kept and only connectivity is revalidated.
  • Equipment in No support does not rediscover automatically on save: to try again, use Redo discovery.
  • Every access edit is recorded in the user's action history.

Delete equipment

The Delete action asks for confirmation and removes the equipment from the module, along with the timeline, the events and the backup files on disk. The credential remains in the vault.

Deleting a piece of equipment also erases the stored backup files. If you need to keep any snapshot, use Download before deleting.


AI discovery New in 7.2

Discovery is the process that turns an SSH credential into a working backup. The system connects to the equipment, identifies brand, model and operating system, and finds (or learns) the correct procedure to extract the configuration for that model. You do not need to know the backup command of each vendor: that is the part Ravi handles.

How it works

  1. Discovery fires immediately when you click Add, when you save Edit access or when you use Redo discovery. It runs in the background and the progress appears live in the Discovery progress panel.
  2. If the brand and model you provided are already in the internal procedure catalog, the system tests the procedure directly, without AI. If it works, the status turns to Backup active right away.
  3. Otherwise, the AI connects over SSH and identifies the equipment with read-only version commands, queries the catalog with the identification obtained and, if there is still no procedure, proposes one. The server tests the proposal for real on the equipment, and the AI revises it until it works.
  4. The approved procedure enters the server catalog. The next piece of equipment of the same model is configured with no AI cost: you pay for AI roughly once per model, not per piece of equipment.
  5. The identified brand and model are written back into the vault credential, and start appearing in any module that uses it.

The catalog ships out of the box with the procedures for Mikrotik RouterOS (configuration export as text plus the binary backup file) and Ubiquiti AirOS, so those pieces of equipment activate the backup without any AI call.

Discovery security

  • The AI does not run free-form scripts on the equipment: it only proposes a procedure with a closed vocabulary of steps, interpreted by a fixed executor of the system.
  • A deterministic block list bars destructive commands (reset, reboot, formatting, file removal, changes to users and passwords), regardless of what the AI produces.
  • During discovery, any write command is blocked: the process is read-only by construction.
  • There are hard limits on steps, time per step, total time and the size of the generated file, plus validation of the extracted content.
  • The procedure that goes into the daily backup is exactly the one that was successfully tested, with no later changes.

When the equipment ends up "No support"

Reason shownWhat it means
Reason: telnet not automatedThe vault credential is Telnet. The module only automates SSH: enable SSH on the equipment and edit the access.
Reason: generic Linux (no backup)The target is a general-purpose Linux server (Debian, Ubuntu, CentOS etc.). By product decision, servers are not included in the network equipment backup.
Reason: no backup methodThe AI did not find a safe way to extract the configuration of this model.

Redo discovery and retries

The Redo discovery button clears the learned procedure, wipes the previous log and fires discovery right away. Use it after updating the firmware, when swapping the equipment while keeping the same IP, or when the No support status was caused by a temporary problem.

The system also protects itself: equipment in Failure is retried automatically (up to 3 times, with at least 2 hours between attempts), and a discovery stuck in Configuring… with no progress returns on its own to Failure, with the reason recorded. You never end up with an eternal "Configuring…" on the screen.

Discovery of new models uses the Ravicor built-in AI engine, without requiring your own API key. If the AI engine is not available on the server, the discovery of models outside the catalog fails with the event "AI engine not configured.", but equipment of already cataloged models keeps being configured normally.

The Discovery progress panel shows only friendly events (connection, identification, validation). Internal commands and procedures never appear in the log.


Daily backup and retention

Once the equipment reaches Backup active, the daily backup runs by itself, every day at 02:00, in a fully deterministic way (the AI takes no part in the execution; it only steps in, optionally, in the diff summary). For each piece of equipment, the system runs the approved procedure, compares the result with the previous backup and decides:

  • No real change: nothing is duplicated. The system keeps only one file per configuration version, and the timeline records "No changes on this day.".
  • With a change: the new file is stored and the timeline gains an entry with the summary and the diff of what changed.
  • Failure: the timeline records the reason, the In failure card increments and the last good backup stays stored. The status returns to normal on the next successful run.

The comparison ignores volatile lines from the equipment (for example, comments with date and time generated by RouterOS): if only the timestamp changed, it does not count as a change and does not use disk.

You can also run on demand with the Backup now button in the equipment detail. The result appears as a notification on the screen: first backup generated, backup completed with the total of changed lines, completed with no changes, or an error (backup or connection).

Retention and disk usage

RuleDefault behavior
File retention30 days. The last backup of each piece of equipment is always preserved, even if it is older: you are never left without a snapshot.
Timeline retentionThe change history entries are kept for 180 days (the screen shows the last 30).
Low disk (less than 5 GB free)Retention automatically shortens from 30 to 7 days.
Critical disk (less than 2 GB free)The daily cycle and discoveries are aborted until space is freed.

The files are stored outside the public area of the server, in /opt/Ravi/backups, with restricted permissions. With deduplication, on a stable network the disk consumption is minimal: one file per configuration version, not per day.

Do not edit or clean /opt/Ravi/backups manually. Use the interface (delete file or equipment) to keep the history and the disk consistent.

Download and delete files

In the Backup list of the detail, each file has the Download and Delete buttons. The download is always authenticated (Master only) and the file is never accessible by a direct URL. Deleting a file asks for confirmation and is irreversible; the only or last main backup of the equipment cannot be deleted, not even by retention: the most recent snapshot is always protected.

Technical limits

  • Backup file: up to 50 MB per artifact.
  • Execution: total time limited to 8 minutes per piece of equipment, with a lock that prevents two simultaneous backups of the same target.
  • The backup list in the detail shows the 50 most recent files.
  • The scope is the equipment configuration (export or running-config). It is not a firmware backup nor a data backup.

Backup failures do not generate a WhatsApp or Telegram notification. Follow them through the In failure card in the central list and through the timeline of each piece of equipment.


Timeline and diff

The Change timeline is the audit record of each piece of equipment's configuration: one entry per day, from the most recent to the oldest, covering the last 30 days. It is the right tool to investigate an incident ("what changed on this router last night?") and to review the team's work.

Each day appears in one of these forms:

  • "No changes on this day.": the backup ran and the configuration is identical.
  • "First backup generated.": milestone of the equipment's first snapshot.
  • Day with a change: a readable summary of what changed, in the user's language, followed by the full diff.
  • "Failure: ...": that day's run did not complete, with the reason recorded.

The diff

  • Lines removed in red (−) and added in green (+), grouped by section of the equipment configuration.
  • A Copy button to take the excerpt to a ticket or documentation, and Show more when the change exceeds 10 lines.
  • In the Backup list, the +N/−N chips of each file indicate the total of lines added and removed; clicking a chip scrolls the page to the matching timeline entry.

The natural-language summary is generated by AI (a feature on by default) in Portuguese, English and Spanish. If the AI is unavailable, the system uses a deterministic summary with the count of lines added and removed: the timeline is never left without a record.

Binary or encrypted backups (for example, the Mikrotik .backup file) have no diff and no content-based deduplication. The diff applies to the main text artifact.


System SSH key New in 7.2

The Ravi server has its own SSH key pair, unique per server, to access equipment by public key instead of a password. Using the key removes the password from the vault for that target and makes the backup survive password changes on the equipment.

Management lives in General settings, the System tab, the System access (SSH key) card (see the Settings documentation). The pair is generated automatically the first time the card is opened; there is no generate button.

  • There are two keys: Ed25519 (recommended) and RSA-2048 (compatibility), the latter for old equipment that only validates RSA. On connection, the system presents both and the equipment accepts whichever is installed.
  • The private key never leaves the server; the card shows only the public keys.
  • The Platform selector assembles a ready-made command to paste into the equipment terminal, with the Copy button. Available platforms: Linux (Debian/RHEL/generic), MikroTik (RouterOS), Cisco IOS, Huawei VRP and Juniper Junos.
  • The Show public keys (manual install) link expands the two full keys, to paste into authorized_keys or import manually.

How to enable the key on a Backups piece of equipment

  1. In General settings, the System tab, open the System access (SSH key) card.
  2. Choose the equipment Platform, click Copy and paste the command into the equipment terminal. On the Cisco, Huawei and Juniper platforms, replace SEU_USUARIO with the equipment login user, as noted on the card.
  3. Back in the Backups module, open Edit access for the equipment and change Authentication to System key. The Password field disappears.
  4. Save. Connectivity is revalidated with the key.

On MikroTik, importing the SSH key disables password login for that user (RouterOS behavior). Install the key and then set System key on the equipment access, otherwise the next password connection will fail.

On Huawei VRP, the generated command allows authentication by key or password, so password access keeps working after installing the key.


Legacy equipment

An ISP network has equipment of every age, and the module was built to live with that without extra configuration.

Legacy SSH (RouterOS 6, AirOS, old Dropbear)

Old equipment often offers only an ssh-rsa host key and key exchange with SHA-1, algorithms that modern SSH clients reject by default. Ravi re-accepts these algorithms in an additive way: modern equipment keeps negotiating the strong algorithms first, and the old ones start connecting with no manual adjustment.

Huawei VRP and interactive shell

Huawei equipment with VRP (NE8000, S-series switches, OLTs) does not accept direct command execution over the SSH channel. For them, the backup engine automatically uses an interactive shell session that:

  • answers "N" to the password change prompt on the first login, without changing the equipment password;
  • disables terminal paging to capture the full output;
  • captures the current configuration directly.

All of this is transparent: discovery detects the need on its own and the operator configures nothing.

Key authentication on old equipment

For equipment that does not validate Ed25519 keys, use the RSA-2048 (compatibility) key from the System access (SSH key) card. Since the system presents both keys on connection, just install the one the equipment accepts.