Community discussions

 
zaherhamiyah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Mar 23, 2006 12:43 am

Backup Script Problem with date time format

Fri Apr 27, 2018 12:53 am

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.
 
2frogs
Long time Member
Long time Member
Posts: 540
Joined: Fri Dec 03, 2010 1:38 am

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

Fri Apr 27, 2018 2:10 am

viewtopic.php?t=95845

It’s not real simple.
 
zaherhamiyah
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 82
Joined: Thu Mar 23, 2006 12:43 am

Re: Backup Script Problem with date time format

Fri Apr 27, 2018 8:44 am

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.:)

Who is online

Users browsing this forum: No registered users and 92 guests