Skip to main content

Mikrotik RouterOS backup tool

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rosbak-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file rosbak-0.0.1.tar.gz.

File metadata

  • Download URL: rosbak-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rosbak-0.0.1.tar.gz
Algorithm Hash digest
SHA256 83ff46f055e21dba314573336392425dd45382eaeb09395436d1ceac9720a2dc
MD5 86a9448ff3388deee4509658b37d175d
BLAKE2b-256 40a03b8b5e375c9efef36759192f9e1951ee89bc066a808fd611ecf932314ae4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page