mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-16 04:54:28 +02:00
upload-backup: remove file after upload
This commit is contained in:
parent
c60c96e32a
commit
1e1b98b161
1 changed files with 4 additions and 0 deletions
|
@ -68,6 +68,8 @@ $WaitFullyConnected;
|
||||||
:set BackupFile "failed";
|
:set BackupFile "failed";
|
||||||
:set Failed 1;
|
:set Failed 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/ file remove ($FilePath . ".backup");
|
||||||
}
|
}
|
||||||
|
|
||||||
# create configuration export
|
# create configuration export
|
||||||
|
@ -84,6 +86,8 @@ $WaitFullyConnected;
|
||||||
:set ConfigFile "failed";
|
:set ConfigFile "failed";
|
||||||
:set Failed 1;
|
:set Failed 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/ file remove ($FilePath . ".rsc");
|
||||||
}
|
}
|
||||||
|
|
||||||
$SendNotification2 ({ origin=$0; \
|
$SendNotification2 ({ origin=$0; \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue