Export Image from MetaRouter

hi all,

how to export image from VM in MetaRouter?

This is how I’ve been doing it for openwrt images.. not a very good way.. but its all I’ve got.
install tar

opkg install tar

create image

cd /
tar zcvf /tmp/newimage.tgz --exclude proc/\* --exclude sys/\* --exclude tmp/\* .
scp /tmp/newimage.tgz user@anotherhost:/tmp/.

put newimage.tgz on the mikrotik router you’d like to create a metarouter on, and “import” it.
hope that helps..
Sam.

hi Sam.

thankfull for your help.


Until Mikrotikls not create an option for this, his way is perfect.

Very Good Job

Congratulations!!

Javier

I was looking to do this and worked out how without updating tar.

cd /
ls /tmp/* /proc/* /sys/* > /tmp/exclude
 tar zcvf /tmp/newimage.tgz -X /tmp/exclude  .

It is easier to create file with dirs only. My exclude file looks like this:

./proc/*
./sys/*
./tmp/*

This works very well with built-in tar command (from BusyBox).

Thanks for that info payday.

I had trouble getting wildcards to work but that exclude file works perfect.

What Openwrt images and repo are you using out of interest?

seems like metarouter is rather unsupported by both MT and OpenWrt.

I use images from here:
http://openwrt.wk.cz/

payday, people in this thread are talking about how to make a backup copy/image from a router of a running OpenWRT MetaROUTER instance that has been modified. They aren’t asking where to download stock images from.

– Nathan

It was an answer to this question:

You are funny, Nathan :slight_smile:

Oh, man…how embarrassing. My bad. I apparently skimmed over that, and you didn’t quote it in your response, so at first glance it looked like it totally came from left field, as if somebody had necro’d a months-old thread that they hadn’t previously been participating in by posting something completely unrelated to it.

My apologies.

– Nathan

You are right. Excuse me. Next time I will do it. :slight_smile:

I did this procedure and a funny thing happened. The metarouter created is a a RouterOS

MikroTik 6.7
MikroTik Login:

What could be wrong?