the wiki currently recommends to backup the stock firmware on the Ubiquiti EdgeRouter ER-X models by first ram-booting openwrt and then running the backup from there.
I thought I found an easier method that works with just the unmodified stock firmware: First, I ssh'd into the box (password is "ubnt" by default):
ssh email@example.com su
And then started a netcat process for each partition of the mtd device (
mtd1ro and so on):
cd /dev cat mtd0ro | nc -lp 5555
On the computer connected to my router, I started a netcat process as well:
nc -w 10 192.168.1.1 5555 > mtd0ro
To make sure it worked, I compared both the sizes (which seemed fine) and the checksums:
However, for some reason, the checksums for the following partitions did not match:
The other partitions seem fine. Any ideas why this is the case? I didn't expect their contents to change while the OS is running. Or is to be this expected for mtd flash on this model?