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 error for RouterOS 7.15 #53

Closed lc1ferr closed 5 months ago

lc1ferr commented 5 months ago

There was an error while running the script. The log shows: 'executing script BackupAndUpdate from winbox failed, please check it manually"

beeyev commented 5 months ago

Yes, you need to execute the script manually and you will see the actual error.

lc1ferr commented 5 months ago

Thank you for your response. I have manually run the script, but the log still shows: 'Executing script BackupAndUpdate from Winbox failed. Please check it manually.' There are no additional log entries.

beeyev commented 5 months ago

Please provide a screenshot of what the console is showing after you execute this command:

/system script run BackupAndUpdate;
lc1ferr commented 5 months ago

bad command name routerboard (line 236 column 42)

beeyev commented 5 months ago

Provide the details about your device

lc1ferr commented 5 months ago

Device information: Identity: MikroTik Model: CloudHostedRouter Serial number: -- Current RouterOS: 7.15 (stable)

The command '/system resource get board-name' executed in the console did not return any content. Therefore, on line 217, the 'do={ isSoftBased true;}' command was not executed.

beeyev commented 5 months ago

Could you please execute this command in your console, and tell me what it returns:

:put [/system resource get board-name]
beeyev commented 5 months ago

I created a bugfix, but could you please check if it works first.

Here is the new version of the script: https://github.com/beeyev/Mikrotik-RouterOS-automatic-backup-and-update/blob/beeyev-patch-1/BackupAndUpdate.rsc

This is the PR with changes

lc1ferr commented 5 months ago

The script is now working correctly. Thank you very much!