← cd ~/blog
~/blog/easy-mikrotik-backup.md

Mikrotik Backups Made Easy

Mikrotik Backups Made Easy

If you’ve ever managed a network of Mikrotik routers, you know the drill. Whether it’s a sudden hardware failure or a configuration tweak gone wrong, having a recent backup is the difference between a five-minute fix and a five-hour nightmare.

While RouterOS is powerful, managing backups across dozens or hundreds of devices can be a logistical headache. So, how do we cure this headache?

Enter Gombak (GO Mikrotik BAcKup), a lightweight, open-source tool written in Go, designed specifically to automate and simplify the MikroTik backup process.

Why Gombak?

Most network admins rely on custom scripts or manual exports. This is totally fine when there is only one, or a few routers to manage, but it is definitely not scalable to do en masse.
Gombak makes this process very easy by providing a unified binary that handles discovery, execution, and retention. Since it’s built in Go, it’s fast, cross-platform, and has zero dependencies.

Key Features at a Glance

Getting Started

Gombak adapts to your network topology through three distinct modes of operation.
There are 3 modes of operation:

  1. Single Mode: Need a backup of a single Mikrotik device? You don’t even need a config file. Just run it straight from your terminal:

    gombak --single.host "192.168.88.1" --single.user "admin" --single.pass "password" --backup-dir "./backups"
    
  2. Multi Mode: For a static list of routers, you can define a config.yaml. This allows you to specify different credentials or SSH ports for every device in your inventory. Your config file would look like this:

    mode: multi
    backup-dir: "./backups"
    multi-router:
      - host: "10.0.0.1"
        username: "admin"
        password: "password"
      - host: "10.0.0.2"
        username: "admin"
        password: "password"
    
  3. The "Smart Discovery" (L2TP Mode): This is where Gombak truly shines for ISPs or large MSPs. If you have a "concentrator" router where other routers connect via L2TP, Gombak can query the concentrator's API, discover the remote IP addresses of the tunnels, and back them all up automatically.
    All you would need to do is to set up its configuration properly:

    mode: l2tp
    backup-dir: "./backups"
    discovery:
      hosts:
        - "10.0.0.1"
        - "10.0.0.2"
      username: "admin"
      password: "password"
    

Automation Made Easy

Gombak comes with a very neat feature. Service installation. It includes built-in commands to install itself as a system service:

Once installed, it will respect your defined backup frequency and backup retention, ensuring you always have a fresh backup without lifting a finger.

Future

Some features which will be added in the future:

Conclusion

If you are looking for a "set it and forget it" solution for Mikrotik backups, Gombak is a fantastic choice. It moves away from the "do-it-your-self-script" of the past and provides a robust, professional CLI tool for modern network administration.

Check it out on GitHub

Sounds useful? Check it out on Gombak GitHub Repository.

next →
EC2 Fleet Command Execution Without Opening SSH
$ esc
cd ~/ home get blog all posts get projects open-source workloads describe engineer resource spec crash pod CrashLoopBackOff demo get post/easy-mikrotik-backup Mikrotik Backups Made Easy get post/ec2-fleet-commands-without-ssh EC2 Fleet Command Execution Without Opening SSH get post/evm-chain-performance-testing-with-tpser EVM Chain Performance Testing with tpser get post/kubernetes-pvc-snapshot-management-with-kmon Kubernetes Storage Operations Made Easy with kmon get post/teams-direct-routing-without-sbc-hardware Microsoft Teams Direct Routing Without the Hardware SBC get post/veeam-backup-grafana-dashboard Monitoring Veeam B&R with Govein get post/vmware-vcenter-vm-inventory-export-to-excel Exporting VMware vCenter VM Inventory to Excel open job/gombak Go-based automation service for MikroTik router backup management — supports single-device and fleet-wide discovery via L2TP, SSH-based access, configurable retention policies, and system service integration for scheduled unattended backups. open deploy/tsbc Containerised Session Border Controller that bridges SIP/UDP-based PBX systems with Microsoft Teams Direct Routing — orchestrates Kamailio, RTPEngine, and LetsEncrypt TLS to handle signalling and media translation without dedicated SBC hardware. open cronjob/aws-commander CLI tool for fleet-wide remote execution on EC2 instances via AWS SSM Run Command — supports ad-hoc shell commands, script files, and Ansible playbooks, targeting instances by ID or tag without requiring inbound SSH access or open security group rules. open exporter/govein Metrics exporter that queries Veeam Backup & Replication 12+ via its REST API and ships structured job telemetry to InfluxDB 2.0 — ships with a Grafana dashboard template and supports standalone binary, Docker Compose, and Kubernetes Helm deployment. open tool/tpser EVM chain performance testing toolkit with two operating modes — a block-range analyser for historical TPS and gas utilisation reporting, and a sustained load generator for stress-testing nodes at configurable transaction rates over extended durations. open cli/vmex CLI utility that queries VMware vCenter via the vSphere API and exports filtered VM inventory data to formatted Excel workbooks — addressing the limitations of vCenter's native CSV-only export for operational reporting and auditing workflows. open cli/kmon Kubernetes administrative CLI and k9s plugin that automates common storage operations — spins up debug pods from live PVCs, restores volumes from VolumeSnapshots, and generates on-demand or CronJob-scheduled snapshots with configurable snapshot class support.