Day: June 3, 2015

How to do backup of MTD partitions of your IPCamera

This is the way I did my backup of IP Camera partitions:

The MTD0 is the whole flash (8MiB) :

/ # dd if=/dev/mtd0 of=/tmp/mtd0_fullflash.img bs=1k                                                         
8192+0 records in
8192+0 records out 

Send it to your FTP server:

/ # ftpput -v -u yourusername -p yourpassword mtd0_fullflash.img /tmp/mtd0_fullflash.img

Replace the address by your FTP server address, same to yourusername and yourpassword.

Just repeat this same approach for all other /dev/mtdN partitions.

P.S.: Instead of using ftpput to upload the file to your FTP server you could just copy these file to www-root (i.e. /mnt/www/) of your IPCamera.