Skip to content

Latest commit

 

History

History
78 lines (56 loc) · 3.11 KB

packages-update.md

File metadata and controls

78 lines (56 loc) · 3.11 KB

Manage system update

GitHub stars GitHub forks GitHub watchers required RouterOS version Telegram group @routeros_scripts donate with PayPal

⬅️ Go back to main README

ℹ️ Info: This script can not be used on its own but requires the base installation. See main README for details.

Description

In rare cases RouterOS fails to properly downlaod package on update (/system/package/update/install), resulting in borked system with missing packages. This script tries to avoid this situation by doing some basic verification.

But it provides some extra functionality:

  • upload backup to Mikrotik cloud if backup-cloud is installed
  • send backup via e-mail if backup-email is installed
  • save configuration to fallback partition if backup-partition is installed
  • upload backup to server if backup-upload is installed
  • schedule reboot at night

Requirements and installation

Just install the script:

$ScriptInstallUpdate packages-update;

It is automatically run by check-routeros-update if available.

Configuration

The configuration goes to global-config-overlay, this is the only parameter:

  • PackagesUpdateDeferReboot: defer the reboot for night (between 3 AM and 5 AM)

By modifying the scheduler's start-time you can force the reboot at different time.

ℹ️ Info: Copy relevant configuration from global-config (the one without -overlay) to your local global-config-overlay and modify it to your specific needs.

Usage and invocation

Alternatively run it manually:

/system/script/run packages-update;

See also


⬅️ Go back to main README
⬆️ Go back to top