Hi,
Thanks for the post.
Can the binary version restore the user manager? if yes can it be used to restore between CHRs or it must be on the same machine.
v6 or v7?
user-manager has is own separate databse, backup restore only customer, router, profiles and user, but without any profile assigned to users, sessions and the rest.
Hi,
V7 is there any way that I can BK my user-manager automatically? sessions are no problem if reset but profile and start times are very important :d
You can try my “Save RouterBOARD full backup of everything [configuration, certificates, host key, router users (no passwords), user-manager, dude, other files]”
http://forum.mikrotik.com/t/router-crashes-are-wiping-the-config/149189/7
Well, Thankyou for sharing I will give it a try. is the
:local certpass “myprivatepass”
refers to PSK for certificate export?
When something needs to be run on both versions, don’t use syntax compatible only with v7
:local Version [/system/resource get version]
->
:local Version [resource get version]
yes… is cert-pass
:local Version [/system/resource get version]
->
:local Version [resource get version]
Good catch, updated.
Hi,
thank you for this script. Works fine. Just note, how can I change name of files?
now I have backup.rsc , bin.backup
want to have for example $info.backup, so it will be ie RB4011.backup
Tried to add it, script stopped work for me.
Thank you
:local email "my@email.com"
:local rscfn "$info. "-" .$date. "-" .$time"
:local bakfn "$info. "-" .$date. "-" .$time"
date contain special character /
time contain special character :
and the routerboard name also can contain special characters
but ignoring that, your syntax is wrong (and why use two variables to store same things inside…)
:local email "my@email.com"
:local rscfn "$info-$date-$time"
:local bakfn "$info-$date-$time"
# or
:local email "my@email.com"
:local rscfn ($info . "-" . $date . "-" . $time)
:local bakfn ($info . "-" . $date . "-" . $time)
tried both, doesn’t work fine.
Attachments are now:
–.rsc
–.backup
It was an example to explain the syntax to you, it wasn’t to correct your version of the script.
This still remains valid: you can’t create a filename with invalid characters in it, do you understand that?
The script does not work. I put in script with “don’t require permission”. Where did it goes wrong?
Add script in between { } and past it to the terminal. Then try to see what fails.
I guess you have gmail setup problems. See this example video: https://www.youtube.com/watch?v=HDyCTbDmgRM
OK it works now. I have to remove the serial variable since I am using CHR there is no routerboard sub-command can be issued. Thanks for the help.
Ahh, Fixed in version 1.5
If unit has no serial, just add NA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhhhhhhhhhhhhhhhhhhhhhhhhh…
…on-error resume next…
Quick and dirty…
Fixed
must be tested
:local serial na
:if ($board!="CHR") do={
/system routerboard
:set serial [get serial-number]
} else={
/system license
:set serial [get system-id]
}
Updated once more, and tested on a hEX