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
:delay
15s
# Upload backup file to FTP server.
/tool fetch address=
192.168.88.2 src-path="
123456.backup" \
user=
xxxxx mode=ftp password=
xxxxx \
dst-path=
/Backup/Mikrotik/123456.backup upload=yes port=21
:log info "Backup Uploaded Successfully"
# delay time to finish the upload - increase it if your backup file is big
:delay
15s
# Delete created backup files once they have been uploaded
# so they don't accumulate and fill up storage space on the router.
/file remove "
123456.backup.rsc"
/file remove "
123456.backup"
:log info "Local Backup Files Deleted Successfully"