Skip to main content

Mikrotik RouterOS backup tool

Instalation

pip3 install rosbak

What is rosbak

rosbak is a Python command line tool which allows backup Mikrotik RouterOS routers and switches.

Keeping backup files inside RouterOS is usually unsafe, as when the equipment fail, you have no access to them.

rosbak performs RouterOS backup and copies files to the specified location.

Requirements

  • RouterOS >= 6.45, as rosbak uses scp
  • RouterOS ssh service should be turned on
  • You should have an access to RouterOS host

Usage

rosbak [options] <host>

e.g.

rosbak -d /backups router1

Configuration

You may put configuration to /usr/local/etc/rosbak.yml

Configuration contains global variable dir which points to default backup location (you may use {host} param e.g. /backups/{host}, in this case backups are stored e.g. to /backups/router1)

Host sections in configuration file may contain router IP (addr), port, backup delay, etc.

Configuration file is optional.

Why backup delay

RouterOS performs backups in background. Backup delay param is required to ask rosbak wait the specified number of seconds before copying backup.

Export

Command line param -x or export: true in host configuration tells rosbak to perform configuration export as well (/export file=...)

Configuration exports are useful when you need to restore backup partially, manually copying settings one-by-one (e.g. when restoring it on the another model).

Copyright and warranty

rosbak is provided as-is under MIT license. rosbak is a 3rd party tool and is not affiliated with SIA Mikrotīkls.

Metadata

Release files for rosbak 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rosbak 0.0.1
File Size Uploaded
rosbak-0.0.1.tar.gz 3.4 kB Details

Release files / rosbak-0.0.1.tar.gz

Download URL rosbak-0.0.1.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
83ff46f055e21dba314573336392425dd45382eaeb09395436d1ceac9720a2dc
BLAKE2b-256 checksum
How to use checksums
40a03b8b5e375c9efef36759192f9e1951ee89bc066a808fd611ecf932314ae4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page