Differences

This shows you the differences between two versions of the page.

doc:howto:generic.backup [2013/07/03 10:57]
lorema
doc:howto:generic.backup [2014/09/08 23:33] (current)
phip switch case
Line 25: Line 25:
Then copy your backup-file via scp or ssh to your PC and keep them safe for the time when you may need them. Then copy your backup-file via scp or ssh to your PC and keep them safe for the time when you may need them.
 +
 +==== Create Backup from Bootloader ====
 +
 +Sometimes it might be necessary to backup settings/partitions from original firmware. Depending on the bootloader different strategies might be possible.
 +
 +The flash-chip is mapped to a start adress. With uboot it should be in settings
 +<code>
 +printenv
 +bdinfo
 +</code>
 +
 +  * memory dump to serial that is logged (uboot: //md// ; redboot: //dump//)
 +  * writing dumps to tftp or nfs
===== Restore Backup ===== ===== Restore Backup =====
Line 44: Line 57:
===== Backup your configuration ===== ===== Backup your configuration =====
 +You can backup configuration through the web interface, at System:Backup / Flash Firmware:Generate Archive. If the web interface is not available, connect using SSH and enter:
<code> <code>
-ssh root@openwrt "cd /etc; tar cvz config" > openwrt.tar.gz+sysupgrade --create-backup /tmp/backup-`cat /proc/sys/kernel/hostname`-`date +%F`.tar.gz; ls /tmp/backup*
</code> </code>
-You may also want to backup other files, such as &quot;ppp&quot; directory.+Now on your local computer, use scp to retreive the file: 
 +(Remember to use the ip of your OpenWRT device and the filename of your backup file.) 
 + 
 +&lt;code&gt; 
 +scp root@192.168.1.1:/tmp/backup-openwrt-2014-08-26.tar.gz . 
 +</code>

Back to top

doc/howto/generic.backup.1372841876.txt.bz2 · Last modified: 2013/07/03 10:57 by lorema