Community discussions

MikroTik App
 
modarresi
just joined
Topic Author
Posts: 10
Joined: Fri Sep 16, 2011 9:58 am

Auto Backup from User manager

Mon May 13, 2019 8:34 am

hello
I want to run this script on my router (RB1100AHx2)
-------------------------------------------------------------------------------------------
# automated UM database backup
:local ts [/system clock get time]
:set ts ([:pick $ts 0 2].[:pick $ts 3 5].[:pick $ts 6 8])
:local ds [/system clock get date]
:set ds ([:pick $ds 7 11].[:pick $ds 0 3].[:pick $ds 4 6])
:local fname ("umdb-".[/system identity get name]."-".$ds.$ts.".backup")
# all above is workaround to get unique filename
/tool user-manager database save name=$fname
--------------------------------------------------------------------------------------------
but When I add the disk1 (name=disk1/$fname) does not run script
what can i do ?
Thanks
 
ee406621
just joined
Posts: 2
Joined: Thu Sep 29, 2016 8:34 pm

Re: Auto Backup from User manager

Fri May 07, 2021 2:24 pm

The same problem
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 3796
Joined: Tue Feb 25, 2014 12:49 pm
Location: Capalbio, Tuscany, Italy

Re: Auto Backup from User manager

Fri May 07, 2021 3:09 pm

not put ".backup" at the end, the right extension is .umb and are added automatically

Value of [/system identity get name] ?
I'm Italian, not English. Sorry for my imperfect grammar.

Who is online

Users browsing this forum: No registered users and 9 guests