aboutsummaryrefslogtreecommitdiffstats
path: root/backup-cloud.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'backup-cloud.rsc')
-rw-r--r--backup-cloud.rsc10
1 files changed, 9 insertions, 1 deletions
diff --git a/backup-cloud.rsc b/backup-cloud.rsc
index 4cc7a58..f32a04d 100644
--- a/backup-cloud.rsc
+++ b/backup-cloud.rsc
@@ -1,6 +1,6 @@
#!rsc by RouterOS
# RouterOS script: backup-cloud
-# Copyright (c) 2013-2024 Christian Hesse <mail@eworm.de>
+# Copyright (c) 2013-2025 Christian Hesse <mail@eworm.de>
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
#
# provides: backup-script, order=40
@@ -38,6 +38,14 @@
:set ExitOK true;
:error false;
}
+
+ :if ([ :len [ /system/scheduler/find where name="running-from-backup-partition" ] ] > 0) do={
+ $LogPrint warning $ScriptName ("Running from backup partition, refusing to act.");
+ :set PackagesUpdateBackupFailure true;
+ :set ExitOK true;
+ :error false;
+ }
+
$WaitFullyConnected;
:if ([ $ScriptFromTerminal $ScriptName ] = false && $BackupRandomDelay > 0) do={