Community discussions

MikroTik App
 
roswitina
newbie
Topic Author
Posts: 42
Joined: Tue Mar 12, 2013 8:12 am

EXPORT - IMPORT (failure)

Wed Mar 18, 2015 11:27 am

I will test the export/import function from mikrotik. RouterOS 6.27.

I use the "export compact file=config" command to generate the file config.rsc
If I use the "import config.rsc" command the system says "failure: already have device with such name"
The file "config.rsc" has not been changed.

What i'm doing wrong?

Rosi
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: EXPORT - IMPORT (failure)

Wed Mar 18, 2015 2:29 pm

The "export" generates a file that is supposed to be applied to a "fresh" installation of RouterOS. Since you're applying it on the same system (or a non-fresh, but similar system), the items you have are already there, and therefore "import" can't add them.

Even though it says "compact", that doesn't mean you're generating any sort of "diff" relative to a current state. In both "compact" and verbose modes, "export" generates a file for a fresh installation. The only difference is that "compact" omits things that RouterOS uses as defaults on fresh installations.



If you're trying to create a snapshot with which to update other existing devices, you should either inspect the file and "manually" remove the existing things, or better yet, create only exports at the modified menus. Before importing, remove all items in that menu, so that when you import them, they aren't there, and are thus added.

Who is online

Users browsing this forum: andaru89 and 17 guests