Page 1 of 1

usermman backup in 5.14 broken.

Posted: Wed Apr 18, 2012 7:40 pm
by pturkey
/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.

Re: usermman backup in 5.14 broken.

Posted: Wed Apr 25, 2012 2:01 am
by skillful
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" ;

Re: usermman backup in 5.14 broken.

Posted: Fri Apr 27, 2012 3:25 pm
by pturkey
Thanks. I did'nt look for a delay.