Commit graph

36 commits

Author SHA1 Message Date
Christian Hesse
c3fce37066 backup-partition: :do ... on-error=... -> :onerror ... do=... 2025-05-21 22:05:35 +02:00
Christian Hesse
200167fa38 backup-partition: check for global config to be ready 2025-05-08 09:51:07 +02:00
Christian Hesse
bf1b3e3c5e backup-partition: fail if global functions do not become ready 2025-05-08 09:51:07 +02:00
Christian Hesse
34c052c5f1 backup-partition: use :onerror for outer block 2025-05-06 09:53:31 +02:00
Christian Hesse
4bfb591fa0 bump required RouterOS version for all scripts 2025-02-07 17:44:41 +01:00
Christian Hesse
aebc4e37da backup-partition: add dependencies on device-mode 2025-01-30 09:00:02 +01:00
Christian Hesse
c70b6a8eb3 backup-partition: use short url rsc.eworm.de 2025-01-29 14:14:26 +01:00
Christian Hesse
6c990079a6 backup-partition: refuse when running from backup partition 2025-01-06 09:31:38 +01:00
Christian Hesse
9e3729c279 update copyright for 2025 2025-01-02 00:04:06 +01:00
Christian Hesse
95030b9b74 backup-partition: use $ExitError to indicate unintentional error 2024-12-09 11:49:50 +01:00
Christian Hesse
435f70999c backup-partition: drop warning on lock in device-mode
... as switching partitions is possible again in RouterOS 7.17beta4.
2024-10-22 19:32:19 +02:00
Christian Hesse
85a7a16c15 backup-partition: log the warning just once 2024-10-09 14:30:29 +02:00
Christian Hesse
1776b8f50b backup-partition: give warning on lock in device-mode
RouterOS 7.17beta2 introduced some extra security measures, including
some to prevent downgrade attacks for the installation. Thus switching
partitions (which can hold quite old installations) is denied by
device-mode now by default. Warn about that...

https://help.mikrotik.com/docs/display/ROS/Device-mode
2024-09-30 16:23:43 +02:00
Christian Hesse
734a80ba82 backup-partition: use $VersionToNum to calculate bitmask 2024-09-13 10:29:06 +02:00
Christian Hesse
6fbafe76ba bump RouterOS requirement for all scripts and modules...
... now that global-functions requires RouterOS 7.14 anyway.
2024-07-16 13:50:22 +02:00
Christian Hesse
25135b64e5 backup-partition: check that target is inactive 2024-07-08 10:05:11 +02:00
Christian Hesse
235737c232 backup-partition: check the fallback partition actually exists...
... and use its id for actions.
2024-07-08 10:04:57 +02:00
Christian Hesse
1bc6f9c45c backup-partition: rename variable 2024-07-05 15:19:11 +02:00
Christian Hesse
affa118161 backup-partition: support copy before feature update 2024-05-23 12:11:41 +02:00
Christian Hesse
6cbe13a135 backup-partition: move code to a local function 2024-05-23 12:11:41 +02:00
Christian Hesse
51331ea2ac backup-partition: support RouterOS copy-over...
... when run interactively from CLI.
2024-05-23 12:11:41 +02:00
Christian Hesse
009674b5bc bump RouterOS requirement for all scripts and modules...
... now that global-functions requires RouterOS 7.13 anyway.
2024-04-07 22:51:24 +02:00
Christian Hesse
b879f8fef2 backup-partition: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse
51b00181cf backup-partition: pass failure to packages-update 2024-03-12 15:27:15 +01:00
Christian Hesse
b8bd64bac5 backup-partition: drop main function, use :do with on-error 2024-03-12 15:27:15 +01:00
Christian Hesse
1e8918fdaa global-functions: $ScriptLock: do not exit from global function 2024-03-12 15:27:15 +01:00
Christian Hesse
0ded98c9e2 backup-partition: move code into function 2024-03-04 16:33:57 +01:00
Christian Hesse
c21da0454b backup-partition: make sure to remove the scheduler on failure 2024-02-02 12:53:45 +01:00
Christian Hesse
7b30af90b7 backup-partition: get the actual real name...
... to prevent confusion after restore.
2024-02-02 12:53:45 +01:00
Christian Hesse
0694d9af3e backup-partition: add a scheduler in backup...
... that logs a warning when backup is booted.
2024-02-02 12:53:45 +01:00
Christian Hesse
77ef9b2c95 backup-partition: use plain variable for name 2024-02-02 10:40:59 +01:00
Christian Hesse
994d3ef05a backup-partition: use :jobname to get script name 2024-01-30 00:52:21 +01:00
Christian Hesse
9a73fc526f update copyright for 2024 2024-01-01 15:25:25 +01:00
Christian Hesse
c3f9ad1df7 packages-update: implement backup script order 2023-09-13 01:14:27 +02:00
Christian Hesse
fa851a7838 backup-partition: lock the script 2023-06-12 19:04:23 +02:00
Christian Hesse
a832fd04ef rename scripts and add file extension ".rsc"
No functional change for the user... The migration is done
automatically.
2023-03-07 22:26:01 +01:00