12/29/2023 0 Comments Winbox backup configuration![]() ![]() #Send as different subjects to force GMail to treat as new message thread. tool e-mail send to=$”toemail” from=$”fromemail” server= port=25 user=$”fromemail” pass=$”pass” subject=” $sysname $time” file=$”textfilename” #A mail server your machines can send through #The From address (you can use your own address if you want) #Your email address to receive the backups # Modify these values to match your requirements # So to start with I created a script to export, send and then remove config files from the local router (saved as backup-and-email): I searched around and finally stumbled across this post about a script called “ Send to Google Drive” that can run in the background on your GMail account all the time. Why Google Drive? Well I already use GMail so I have 30GB of hosted space I can keep everything together in, so why wouldn’t I?! This also sync between my Desktop and Laptop so I’ll always have copies of the backups with me. So, there’s plenty of ways to have a MikroTik router backup and send a copy of it’s config to an email account, but what I really wanted to do was have them automagically move into a Google Drive folder of my choosing. I learnt from Greg that you have to just whole-ass them □ Given I use Gmail it might have been ok just to have each router send them there and leave it at that, but I’m not really the sort of person to half-ass my afterhours projects. RANCID is great and all, but I didn’t really need the diff copies of each file, and I was plenty happy just knowing that I have a. In this video also explained how to set up email if we use the mail server from Google, Gmail.Īlso make sure your Network Time Protocol is running so that the time on the Router is correct.I was recently looking for a simpler alternative to something like RANCID to periodically backup all our MikroTik configs. So that the process of making this backup file can be done periodically, we can use the Scheduler feature so that we can manage the vulnerable time when the Script backup file creation can be done periodically. Mikrotik backup script simple bash script for doing encrypted backups of mikrotik devices(Routeros) via ssh. Then we can create a new script that contains the configuration backup command combined with send to an email that we have set before. WinBox Method Upload perfectrestore.rsc to your router’s flash folder Rename your backup file backup.rsc and upload it to the router’s flash folder Click System Reset Configuration in Winbox Check the box No Default Configuration and choose flash/perfectrestore. sub1 Configuration BACKUP File fromgmailid filebackupfile servergmailip. To be able to send emails from the Router, do the SMTP Server settings and email username and password on the email menu / tool. copy the contents of Winbox.old into the new Winbox folder EXCEPT DO NOT COPY - path, sessionpath and Now when you launch Winbox you should see your saved managed sessions, albeit you may have to turn on some columns you had previously. Posts about mikrotik backup written by Abubaker SIddiq Lasania. ![]() Loading a backup Load units backup without password: adminMikroTik > system/backup/load nameauto-before-reset. Technically these needs can be met by using a combination of several features namely Script, Backup then email and also Scheduler. The backup file will be available under /file menu, which can be downloaded using FTP or using Winbox. In this video an example will be given to backing up the router config and sending it via email automatically and periodically. It would be better if the backup file is not stored on internal storage / disk so it does not go away when the Router is damaged. Login to your MikroTik Router using Winbox with admin privilege. The following steps will show how to backup MikroTik configuration file using Winbox GUI. such as a broken router, hacked resulting in loss of configuration and others. How to Backup MikroTik Configuration File It is easy to backup MikroTik configuration using Winbox GUI but you can use WebFig web interface that follows same procedure as Winbox. Send routers configuration backup files via automatic e-mail periodicallyīacking up the configuration on the Router is one of the best steps so that the admin does not need to reconfig when the router is reset or some unwanted things happen.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |