I need to setup my MT to do system backup to my NAS over FTP.
So idea is this, once a week (exemple every Friday at 00h) MT need to do system backup and to export “name”.backup file to Local NAS ftp://192.168.88.2/Mikrotik/Backup/ and after that do delete same file from MT memory.
I try to find some script but any of those doesn’t work…
So someone can help ?
Hello
I find some scripts on net and combine some part of it, and got this, all work fine, and Logs shows messages.
Just change red fields to custom your system, and all work fine
I lost few hours to make it work, because not even one script that I find on net would not work, but it is good now…
Thank for help.
:local time [/system clock get time];
:local date ([:pick [/system clock get date] 0 3]
. [:pick [/system clock get date] 4 6]
. [:pick [/system clock get date] 7 11]);
:local filename “$hostname-$date-$time”;
Create backup file and export the config.
export compact file=“123456.backup”
/system backup save name=“123456”
:log info “Backup Created Successfully”
delay time to finish the create - increase it if your backup file is big