Giter Club home page Giter Club logo

mikrotik_backup's Introduction

MikroTik_Backup

This shell script is used to create and pull MikroTik backup's to a server.

The rundown of the scripts is as follows

  1. Router_Backup_Config.sh will login to the MikroTik using specified user and create a backup file. (default name will be $router.backup)
  2. Router_Backup_Pull.sh Will login in to the MikroTik using a specified user to pull the backup file, then it will timestamp the backup file.

Setup before running scripts

  1. Set up a user on the MikroTik that will be used as to login to the MikroTik, my example uses a user called "Backup_Agent".
  2. Copy the connecting clients public SSH key on to the Mikrotik, This is the better and more secure configuration as you won't have to hardcode a SSH password into the script.
    1. Instructions on how to copy a pub key to a MikroTik: https://bit.ly/2o70ZEc
  3. Setup a cron job on the client server to run the scripts on a desired interval.
    1. Schedule Router_Backup_Config.sh first
    2. Schedule Router_Backup_Pull.sh second, after a reasonable amount of time (5 minutes or so) after the config script
  4. Schedule a script on MikroTik to delete backup file created on MikroTik it self. - example script - "delete_old_backups"

mikrotik_backup's People

Contributors

aztek1337 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.