mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-01 00:34:40 +02:00
backup-upload: use $RmFile
This commit is contained in:
parent
81ba47a07d
commit
88ff031368
1 changed files with 4 additions and 3 deletions
|
@ -36,6 +36,7 @@
|
|||
:global MkDir;
|
||||
:global RandomDelay;
|
||||
:global RmDir;
|
||||
:global RmFile;
|
||||
:global ScriptFromTerminal;
|
||||
:global ScriptLock;
|
||||
:global SendNotification2;
|
||||
|
@ -100,7 +101,7 @@
|
|||
:set Failed 1;
|
||||
}
|
||||
|
||||
/file/remove ($FilePath . ".backup");
|
||||
$RmFile ($FilePath . ".backup");
|
||||
}
|
||||
|
||||
# create configuration export
|
||||
|
@ -119,7 +120,7 @@
|
|||
:set Failed 1;
|
||||
}
|
||||
|
||||
/file/remove ($FilePath . ".rsc");
|
||||
$RmFile ($FilePath . ".rsc");
|
||||
}
|
||||
|
||||
# global-config-overlay
|
||||
|
@ -140,7 +141,7 @@
|
|||
:set Failed 1;
|
||||
}
|
||||
|
||||
/file/remove ($FilePath . ".conf");
|
||||
$RmFile ($FilePath . ".conf");
|
||||
}
|
||||
|
||||
:local FileInfo do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue