Community discussions

MikroTik App
 
modarresi
just joined
Topic Author
Posts: 11
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
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

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] ?

Who is online

Users browsing this forum: No registered users and 8 guests