Problem with Backup/Restore ?

Hi,

i have since four years my RouterOS on a Pentium PC.
Today i have build a second Router. The Second Router is for redudance, if the first (4 years old) router crashes the hardware.

On both routers is MikroTik 2.8.5 installed. But the the second router can not work after restore the backup-file from the first router. Both Networkcards is after reboot diabled, the names of the networkcards are wrong (e.g. ether3 and ether4, but in original is ether1 and ether2), and in the console “ip address print” all IP-Addresses is set to INVALID and in the interface-name is “(unknown)”.

Can you please help me?
On the first router is a license key. On the second i will buy the license key in 24 Hours, if the router is finaly functional. Or MUST i buy the licensekey before restore the backup file?

Thank you
Andy

Backup/restore will only work on the same hardware. New system won’t have the same ports, macs, etc. If your configuration is large then use /export. Edit the file first to get rid of the mac addresses and other things that shouldn’t be imported into the new system.

oh, thank, you have understand my problem. Sorry for my bad english and many many thanks. I don’t know the /export-Command. I have every use the Winbox. But just with
your help, i have found it and created a file/script.

But, where can i found the rid ?
Here my first lines of my file:

# jun/20/2007 20:46:36 by RouterOS 2.8.5
# software id = XXXX-XXXX
#
/ interface ethernet 
set ether1 name="ether1" mtu=1492 arp=enabled disable-running-check=yes \
    auto-negotiation=yes full-duplex=yes long-cable=no speed=100Mbps \
    disabled=no 
set ether2 name="ether2" mtu=1500 arp=enabled disable-running-check=yes \
    auto-negotiation=yes full-duplex=yes long-cable=no speed=100Mbps \
    disabled=no 
/ interface bridge port 
set ether1 bridge=none priority=128 path-cost=10 
set ether2 bridge=none priority=128 path-cost=10 
/ interface l2tp-server server 
set enabled=no mtu=1460 mru=1460 authentication=mschap2,mschap1,chap,pap \
    default-profile=default 
/ interface pptp-server server 
set enabled=no mtu=1460 mru=1460 authentication=mschap2,mschap1 \
    default-profile=default 
/ ip accounting 
set enabled=yes threshold=8192 
/ ip accounting web-access 
set accessible-via-web=yes address=192.168.48.0/24 
/ ip address

Best regards from Germay
Andy

Not sure I understand if there is a question there. /export and /import are command line commands. If you have a comfiguration script is just as easy to open a new terminal window in WinBox and just copy paste your new config. But you can also /import filename= if the file has been uploaded to the router.

Hi,

thanks for you help and yes, i have it :sunglasses:
The new router runs. But the scriptfile have 2-3 entrys, this must delete (users).
And the RIP-Setup is not in the export-script. I’m testing tomorow the latest version
of MikroTik 2.9.xx

By the way: I use the Router since 4 years, and this is the best RouterOS !!!
Very simple to use by very very good prices :slight_smile:

Last Question:
Why can’t use the Backup-File from old router on new hardware after Hardwarecrash?
I think the best solution after Hardwarecrash is, i can put the latest backup file to the new
router. Or is this future in a newer release (after 2.8.5) ?

Best regards from Germany
Andy

Good question for the MT staff. There is no good way without A LOT of text editing to backup a router config for such an event. Anyone have a better idea?

This is a true problem… I have today ONLY TESTED “a desaster” (Hardwarecrash).
I have lot of motherboards, cpu’s, Networkcards… But the RouterOS works not fine with
the Backup-Files on other hardware. And by desaster, TIME IS MONEY! :open_mouth:

By the Way: Gives in MikroTik (2.8.5 and later) a future, where can i make a backup-file
automatical ? e.g. every day 2:00am make a backup-file and make a export-file?

Best regards from Germany
Andy

Use the scheduler tool to do whatever whenever. Just watch your HD space if it a flash card.

While you can reduce your downtime by mirroring drives and keeping hot spares for hardware failures, the unfortunate truth is that Router O/S is not designed with enterprise level recovery in mind. In the best of cases you’re going to have to swap in a mirrored drive, but in the case of a hardware failure you better have a print copy of the config to work from because you’re going to have to rebuild the router, possibly from scratch.

I’ve done my share of “from scratch” rebuilds because of hardware swaps after an AP took a hit of somekind. The sad fact is that if you’re familier enough with the basic config for your network, it takes less time to just rebuild the device from scratch than to fight with trying to restore any kind of Router O/S generated backup. Configure the basic interface IP’s, hand the AP to the field tech, and once it’s installed you can fine tune the config after you’ve got your customers back online.

As far as i know, created backups can be restored on the same router where it was created. This is because it contains also hardware related data ( which is different on other machines ).
If you want to share configuration across many machines, use /import and /export commands. On 2.9 also make sure you have enabled and installed the same packages as on router from which config was exported. On 3.0 this is no longer required, script will be imported without errors even if some of commands in script is unavailable.