Skip to content

Instantly share code, notes, and snippets.

View ranzhe's full-sized avatar

Evgeny ranzhe

View GitHub Profile
@ranzhe
ranzhe / auto-backup-email.rsc
Last active September 3, 2020 01:01
Automatic E-mail backup script for Mikrotik RouterOS
:local saveUserDb true
:local saveSysBackup true
:local encryptSysBackup false
:local saveRawExport true
:local mailTo "destination@email.tld"
:local ts [/system clock get time]
:set ts ([:pick $ts 0 2].[:pick $ts 3 5].[:pick $ts 6 8])
@ranzhe
ranzhe / auto-backup-ftp.rsc
Last active July 27, 2021 22:54
Automatic FTP backup script for Mikrotik RouterOS
:local saveUserDB true
:local saveSysBackup true
:local encryptSysBackup false
:local saveRawExport true
:local FTPServer "ftpserver.tld"
:local FTPPort 21
:local FTPUser "my-mikrotik"
:local FTPPass "SecurePassword"