i want to cloud backup one time per day in case i made changes to my router and i want to revert to something older. so i want the script to delete the old file if exists and uploads the new. (mikrotik should have a create-and-replace command for that)
below script works for 1 time in terminal and after no. also if i place it in scripts menu does not work all the time.
maybe an alternate way with “if” if backup exists on cloud delete it and after upload the new one.
Here is my script, which is very similar than the above, but maybe for some people slightly more clear since no use of variables and no code duplication.