No description
  • Shell 82.1%
  • Dockerfile 17.9%
Find a file
Renovate Bot 883ee9dced
All checks were successful
/ lint (push) Successful in 3s
/ build_and_test_and_push (push) Successful in 35s
chore(deps): update ubuntu:24.04 docker digest to 25f3726 (#59)
Co-authored-by: Renovate Bot <renovate@mgrote.net>
Co-committed-by: Renovate Bot <renovate@mgrote.net>
2026-02-18 01:11:19 +01:00
.gitea/workflows chore(deps): update docker/build-push-action action to v6.19.2 (#58) 2026-02-12 17:12:10 +01:00
app.sh fix shellcheck errors 2025-10-25 10:53:04 +02:00
Dockerfile chore(deps): update ubuntu:24.04 docker digest to 25f3726 (#59) 2026-02-18 01:11:19 +01:00
LICENSE release routeros-config-backup under GLPv2 2026-01-12 21:39:44 +01:00
README.md fix readme 2024-09-02 21:22:16 +02:00
renovate.json renovate: use another syntax for extends 2025-12-03 17:03:22 +01:00

oxidized-selfmade aka routeros-config-export

This is a small script that pulls the config of one or multiple routeros-devices and pushes them into git-repository.

Usage

version: "3"
services:
  routeros-config-export:
    container_name: routeros-config-export
    restart: always
    image: registry.mgrote.net/oxidized-selfmade:master
    volumes:
      - /home/mg/key_git:/key_git:ro # passwordless ssh-key for pushing to the git-repository
      - /home/mg/key_rb5009:/key_rb5009:ro # passwordless ssh-key for a specific device, if you have mutltiple devices with different keys, mount them all here
    environment:
      # Format <FQDN>,<SSH_KEY_PATH to ssh-private-key(passwordless)>  #siehe volunmes # |- damit keine newline am ende erstellt wird
      DEVICES: |-
              # <fqdn of the device>,<user>,<path to ssh-key>
              rb5009.grote.lan,admin,/neu
      GIT_REPO_BRANCH: "master" # on which branch should the commits be created
      GIT_REPO_URL: "ssh://gitea@gitea.grote.lan:2222/mg/testrepo.git" # repo-url in ssh format
      GIT_REPO_DEPLOY_KEY: "/neu" # path to deploy-key for the git-repository
      GIT_USERNAME: oxidized-selfmade # username for the commit
      GIT_USER_MAIL: michael.grote@posteo.de # mailaddress for the commit
      GIT_REPO_REMOTE_NAME: origin # git-name of the remote
      INTERVAL: 30 # interval, how often should the config be pulled