beeyev / Mikrotik-RouterOS-automatic-backup-and-update

Script sends backups to email and keep your mikrotik firmware up to date.
MIT License
442 stars 83 forks source link

Script does not work on a CloudHostetRouter #55

Closed DerMilderJoghurt closed 4 months ago

DerMilderJoghurt commented 4 months ago

every time I run it, I get the error "executing script BackupAndUpdate from winbox failed, please check it manually". If I delete the marked lines, the script works again.

https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update/blob/750f655c7c3769d42d85b5ddf82f66a6bfaaad43/BackupAndUpdate.rsc#L235-L240

beeyev commented 4 months ago

Could you please execute the unchanged script manually from the console using this command, and tell what error it returns?

/system script run BackupAndUpdate;
DerMilderJoghurt commented 4 months ago

bad command name routerboard (line 236 column 42) there is no routerboard entry for a cloudhosted router

beeyev commented 4 months ago

Okay, Now, could you please execute this command in console and show what it returns:

:put [/system resource get board-name]
DerMilderJoghurt commented 4 months ago

x86 YL-1900L4-V2

beeyev commented 4 months ago

Okay, I see the problem now. Could you please test this version of the script with the bugfix, and tell me if it works: https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update/blob/beeyev-patch-1/BackupAndUpdate.rsc

DerMilderJoghurt commented 4 months ago

now it works thanks