Commit graph

24 commits

Author SHA1 Message Date
Christian Hesse
b3b7643661 backup-upload: no early exit... 2024-04-29 18:03:40 +02:00
Christian Hesse
db1faf1091 backup-upload: remove temporary directory 2024-04-23 14:22:24 +02:00
Christian Hesse
3015743b19 global-functions: $HumanReadableNum: indicate binary base...
... and update scripts to match the change.
2024-04-07 22:51:24 +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
ca822e1358 backup-upload: switch to $LogPrint 2024-03-12 20:37:57 +01:00
Christian Hesse
e39e8a0083 backup-upload: pass failure to packages-update 2024-03-12 15:27:15 +01:00
Christian Hesse
8d020a4de8 backup-upload: 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
1c26dde356 backup-upload: move code into function 2024-03-04 16:34:01 +01:00
Christian Hesse
c1568a33dd backup-upload: use $CleanName 2024-01-31 23:10:15 +01:00
Christian Hesse
b4ac193789 backup-upload: use :jobname to get script name 2024-01-30 00:52:21 +01:00
Christian Hesse
21cf6d49bb backup-upload: fix the upload symbol...
... which broke with commit 080bef89a9.
2024-01-19 17:08:55 +01:00
Christian Hesse
9a73fc526f update copyright for 2024 2024-01-01 15:25:25 +01:00
Christian Hesse
b75b0bf6be backup-upload: get rid of '.txt' file extension 2023-11-22 21:17:44 +01:00
Christian Hesse
5f457e5c37 backup-upload: build file info in a function 2023-11-15 14:35:18 +01:00
Christian Hesse
4d70b7fea4 backup-upload: give more info on files 2023-11-15 14:35:09 +01:00
Christian Hesse
c3f9ad1df7 packages-update: implement backup script order 2023-09-13 01:14:27 +02:00
Christian Hesse
49d85c6def backup-upload: revert changes, add comment with warning
Turned out that using `/file/add ...` introduced a regression. Accessing
(reading and writing) file contents is limited to 4095 bytes.

This limitation does not exist for `:execute script=... file=...`, so
keep the old code. Also add a comment with warning.
2023-08-30 09:30:25 +02:00
Christian Hesse
f099c2c9ea backup-upload: check configuration size before writing file 2023-08-30 09:30:25 +02:00
Christian Hesse
f86cf27aa3 backup-upload: detect failure creating config file 2023-08-29 08:58:50 +02:00
Christian Hesse
1dd1c5b03c backup-upload: write config file directly
This functionality was added in RouterOS 7.9beta4...
2023-08-29 08:58:50 +02:00
Christian Hesse
1167347ec0 backup-upload: lock the script 2023-06-12 19:04:23 +02:00
Christian Hesse
bac6a72d51 backup-upload: use $FormatLine 2023-04-24 22:26:26 +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