Backup script behaves strange
Posted: Wed May 15, 2019 10:03 am
I have more or less standard backup script that runs /system backup and /export file to save configuration and then sens created files via email to backup storage.
I use it for years on number or routers and it works fine.
However, on one router it behaves strangely.
If run form scripts or by schedule only /system backup part works and creates file. Part with /export file and sending files via email does not work. No errors are displayed. Even put commands that should show script progress in log do not work.
BUT... when I copy script and paste it to terminal and run it - it works as expected.
I checked permissions, it is set as everywhere else.
This is not new problem, it occurred long time ago, and expands through several firmware upgrades.
What could cause such behavior?
I use it for years on number or routers and it works fine.
However, on one router it behaves strangely.
If run form scripts or by schedule only /system backup part works and creates file. Part with /export file and sending files via email does not work. No errors are displayed. Even put commands that should show script progress in log do not work.
BUT... when I copy script and paste it to terminal and run it - it works as expected.
I checked permissions, it is set as everywhere else.
This is not new problem, it occurred long time ago, and expands through several firmware upgrades.
What could cause such behavior?