Community discussions

MikroTik App
 
tafisa
just joined
Topic Author
Posts: 3
Joined: Wed Nov 26, 2014 3:20 pm

"File already exist" only with User_manager database

Wed Dec 03, 2014 12:44 pm

Hello;

I am trying to backup and email the database of User-Manager but when it detects that the name file exist on "files" it stops and send me alert "Script error: File already exist"!

All is OK when the file is a .backup or even .rsc but I can't fix this problem with bbdd files


:log info "backup BBDD beginning now"
:global bbddfile ([/system identity get name] . "_BBDD")
/tool user-manager database save name=$bbddfile
:log info "backup pausing for 6s"
:delay 6s


Any idea?



Thanks
 
User avatar
skot
Long time Member
Long time Member
Posts: 584
Joined: Wed Nov 30, 2011 3:05 am

Re: "File already exist" only with User_manager database

Mon Dec 08, 2014 9:30 pm

You can overwrite the backup file with: overwrite=yes
/tool user-manager database save name=$bbddfile overwrite=yes

Who is online

Users browsing this forum: No registered users and 6 guests