Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hint: automatic Mikrotik backup #6

Open
petrkutalek opened this issue Dec 8, 2021 · 3 comments
Open

Hint: automatic Mikrotik backup #6

petrkutalek opened this issue Dec 8, 2021 · 3 comments

Comments

@petrkutalek
Copy link

Hi Jeff,

Automatic backup of Mikrotik device can be done very easily:

  1. set up SSH access to your Mikrotik
  2. save backup and copy it
ssh mymikrotik /system backup save name=/mymikrotik.backup
scp mymikrotik:/mymikrotik.backup .

or save configuration (textual) and copy it

ssh mymikrotik /export file=/mymikrotik
scp mymikrotik:/mymikrotik.rsc .
  1. profit :)

As always, thanks for sharing your experience. 👍️

Petr

BTW: I'm always curious about your geerli.net domain. It seems to publicly contain only a private 10.0.0.0/8 A record; 🤔 so is it set up on a DNS server on the internal network for local addressing? Maybe it deserves some video in the future. 😃

@geerlingguy
Copy link
Owner

@petrkutalek - AFAICT, that only works if you're booted into RouterOS, though, right? I'm booted into SwitchOS for performance reasons.

@geerlingguy
Copy link
Owner

(Also related: #4)

@sebweb3r
Copy link

sebweb3r commented Dec 9, 2021

I (again RouterOS) run a modified version of this backup script for mikrotik stuff I cannot (easily) ssh into (f.e. at my sisters places)
https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update
and push the config via ssh.

But it should be possible to use curl/wget scripts, like mentioned here:
https://forum.mikrotik.com/viewtopic.php?t=172799
But I cannot test it yet (CSS device is not yet here and my Routerboards and CRS125 cannot boot SwOS)
It (curl) works like a charm for my few non-RouterOS/OpenWRT devices so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants