Community discussions

MikroTik App
 
pturkey
newbie
Topic Author
Posts: 40
Joined: Wed Aug 19, 2009 7:30 pm

usermman backup in 5.14 broken.

Wed Apr 18, 2012 7:40 pm

/tool user-manager database save name=Database ; /tool e-mail send to="name@somewhere.net" subject=([/system identity get name] . " Database Backup") file="Database.umb" ;

This was working until I upgraded to 5.14.
Now I get this.
/tool user-manager database save name=Database.umb ;
Saving user-manager database
Failed to save user-manager database backup
File already exit!

If I add /file remove Database.umb; at the top.
I get this.
input does not match any value of file.
 
User avatar
skillful
Trainer
Trainer
Posts: 552
Joined: Wed Sep 06, 2006 1:42 pm
Location: Abuja, Nigeria
Contact:

Re: usermman backup in 5.14 broken.

Wed Apr 25, 2012 2:01 am

If the size of your user manager database file is large, you need to introduce a delay in the script after saving the database to give enough time for the save operation to complete before the email operation commence.

/file remove Database.umb ; /tool user-manager database save name=Database ; :delay 10 ; /tool e-mail send to="name@somewhere.net" subject=([/system identity get name] . " Database Backup") file="Database.umb" ;
 
pturkey
newbie
Topic Author
Posts: 40
Joined: Wed Aug 19, 2009 7:30 pm

Re: usermman backup in 5.14 broken.

Fri Apr 27, 2012 3:25 pm

Thanks. I did'nt look for a delay.

Who is online

Users browsing this forum: haedertowfeq and 12 guests