I found a script on a forum post here somewhere for doing automatic backup of the config. I adapted it a bit to do what I wanted it to do, and it's been working fine throughout November, creating a backup file every day.
Seems to have stopped working now that we're in December though, and I have no clue why - this is only the second script that I've ever worked with...
Code: Select all
:local theDate [/system clock get date]
:local theDay [ :pick $theDate 4 6 ]
:local theMonth [ :pick $theDate 1 3 ]
:local theMonthNumber ([:find "xxanebarprayunulugepctovecANEBARPRAYUNULUGEPCTOVEC" "ov" -1] / 2);
:if ($theMonthNumber>12) do={:set theMonthNumber ($theMonthNumber - 12)}
:if ($theMonthNumber < 10) do={:set theMonthNumber "0$theMonthNumber"}
:local theYear [ :pick $theDate 7 11 ]
:local exportFileName "$theYear-$theMonthNumber-$theDay_RB4011.rsc"
export terse show-sensitive file="$exportFileName"
Any thoughts?
Thanks very much.