Page 1 of 1

Auto Backup from User manager

Posted: Mon May 13, 2019 8:34 am
by modarresi
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

Re: Auto Backup from User manager

Posted: Fri May 07, 2021 2:24 pm
by ee406621
The same problem

Re: Auto Backup from User manager

Posted: Fri May 07, 2021 3:09 pm
by rextended
not put ".backup" at the end, the right extension is .umb and are added automatically

Value of [/system identity get name] ?