Community discussions

MikroTik App
 
someone2
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sun Jan 07, 2018 9:52 pm

Automated backup

Wed Aug 15, 2018 7:51 pm

Hello
In automated backup page of wiki mikrotik , the name of the backup file is the same. How can we use mtbackup when the name of backup files are diffirent depends on the date of saving. For example the name of backup is "identity . Date "
Thanks a lot
 
Simono
newbie
Posts: 49
Joined: Tue Mar 20, 2018 9:41 am

Re: Automated backup

Wed Aug 15, 2018 10:34 pm

You can use script
:global thisdate [/system clock get date]
:global datetimestring ([:pick $thisdate 4 6] ."-" . [:pick $thisdate 0 3] ."-" . [:pick $thisdate 7 11])
/system backup save name="$[/system identity get name]_$datetimestring"

Who is online

Users browsing this forum: No registered users and 32 guests