GreenMap wrote:Hello hnyman, were are using several Linksys WRT54GL. Well, I don't think I got it. Why should I backup the mac addresses? When I have to do a recovery I usually have to replace the Access Point. Is there a way to do a complete fullbackup?
My point was that I have no need to backup ART partition, as Openwrt does not modify it, so it remains in original condition all the time.
I have a feeling that you are thinking a "full backup" with a too complicated way. Openwrt generally stores all configuration in its file system, so using file copy tools to create the backup of config files is usually enough. You can also use Luci GUI to make a bakcup of the settings.
I regularly reflash my router with a new firmware, and I usually have to restore only about 10 config files after the flash. No need for any "complete backup".
---
If you really want to make a "complete backup", then you could copy the contents of all the partitions somewhere, but then you need to figure also a way to restore them (as most of those mtd partitions are normally read-only).
1. # cat /proc/mtd
2. you should get something like this:
dev: size erasesize name
mtd0: 00050000 00010000 "uboot"
mtd1: 00020000 00010000 "env"
mtd2: 00720000 00010000 "rootfs"
mtd3: 00010000 00010000 "config"
mtd4: 00010000 00010000 "config_bak"
mtd5: 00010000 00010000 "pot"
mtd6: 00010000 00010000 "traffic_meter"
mtd7: 00020000 00010000 "language"
mtd8: 00010000 00010000 "caldata"
mtd9: 0071ffc0 00010000 "mount_fs"
root@OpenWrt:~#
3. For each partition (mtd), extract it with the same name, using this logic:
cat /dev/mtd0 > /tmp/uboot.bin
cat /dev/mtd1 > /tmp/env.bin
cat /dev/mtd2 > /tmp/rootfs.bin
cat /dev/mtd3 > /tmp/config.bin
cat /dev/mtd4 > /tmp/config_bak.bin
cat /dev/mtd5 > /tmp/pot.bin
cat /dev/mtd6 > /tmp/traffic_meter.bin
cat /dev/mtd7 > /tmp/language.bin
cat /dev/mtd8 > /tmp/caldata.bin
cat /dev/mtd9 > /tmp/mount_fs.bin
4. Copy the binary dump files to a safe place.