OpenWrt Forum Archive

Topic: Make an image file of the whole configuration?

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi,

first: sorry for my english, it´s not my native language!

I´ve installed whiterussian RC6 pppoe on my buffalo whr-hp G54 successfully.
I also installed packages like quagga with ospf support and other.
Now, i like to now if it is possible to make an image file of the whole configuration and save it to my PC.
My intention is to install then the openwrtwhiterussianmyconfig-image on other buffalo whr-hhp G54 routers(about 100)
to save time and not configure and install the packages for every single one of them.

Many thanks in advance.

Sub-Zero-1

----------------------------------
BACKUP

mount -o remount,ro /dev/mtdblock/4 /
dd if=/dev/mtdblock/1 > /tmp/wrt-linux.trx
mount -o remount,rw /dev/mtdblock/4 /
dd if=/dev/mtdblock/3 > /tmp/wrt-nvram.bin

----------------------------------
RESTORE

dd if=/tmp/wrt-nvram.bin of=/dev/mtdblock/3
mount -o remount,ro /dev/mtdblock/4 /
mtd -r write /tmp/wrt-linux.trx linux
----------------------------------

your image will be in /tmp you can saveit to your PC using WinSCP or similar software

Excellent! I will try it! Thanks!

"Little correction:" jffs was missing.

BACKUP

mount -o remount,ro /dev/mtdblock/4 /jffs
dd if=/dev/mtdblock/1 > /tmp/wrt-linux.trx
mount -o remount,rw /dev/mtdblock/4 /jffs
dd if=/dev/mtdblock/3 > /tmp/wrt-nvram.bin

(Last edited by Sub-Zero-1 on 24 Jan 2007, 14:41)

The discussion might have continued from here.