Page 1 of 1

Backup Script Problem with date time format

Posted: Fri Apr 27, 2018 12:53 am
by zaherhamiyah
Hi,

i have this script:
/export file=([/system identity get name] . "-" . [:pick [/system clock get date] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock get date] 4 6]. ".rsc"); :delay 5;
The result is: System identity-2018apr27.rsc

I need to make it like this: System identity-20180427.rsc

I am not good with programing :)

Thanks.

Re: Backup Script Problem with date time format  [SOLVED]

Posted: Fri Apr 27, 2018 2:10 am
by 2frogs
viewtopic.php?t=95845

It’s not real simple.

Re: Backup Script Problem with date time format

Posted: Fri Apr 27, 2018 8:44 am
by zaherhamiyah
viewtopic.php?t=95845

It’s not real simple.
WOW!

Forget it. I suffered a lot (since i am not programmer) to make email daily backup works after trial and error. And of this one just to change the date/time format. :(

P.S. the normal backup from /system backup section, makes the file as requested. I suggest to Mikrotik guys, give us this option or make it the default.

Thanks.:)