This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
computing:storage:backup_cf_ssh [2013/01/11 13:02] gcooper |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Backing Up Your Compact Flash Using SSH ====== | ||
- | See also: **[[computing: | ||
- | |||
- | :!: This information was taken from the IPCop firewall/ | ||
- | |||
- | You may want to save an entire compact flash image as a .img file for easy restoration in case of an emergency. | ||
- | |||
- | Make sure SSH (server) is enabled on the machine containing the flash memory card. On IPCop, you use the web interface to enable SSH. With IPCop, you also need to open the firewall port 222 if you need access from the Red (Internet) interface. | ||
- | |||
- | To back up an IPCop firewall/ | ||
- | |||
- | < | ||
- | ssh -p 222 root@ip.of.ser.ver "dd if=/ | ||
- | </ | ||
- | |||
- | * For other than IPCop, you can omit the '-p 222' | ||
- | * The default SSH port is 22 | ||
- | * Change the IP address to your own IP or DNS name | ||
- | * You can adjust the '/ | ||
- | * IPCop has symbolic links fo / | ||
- | * CF cards are often /dev/hda or /dev/hdb | ||
- | * CF card readers often use IDE interfaces | ||
- | * /dev/sda (first SCSI disk) is common for USB flash drives | ||
- | * Ditto for SATA interfaces | ||
- | |||
- | If the system you are backing up does not have the gzip utility, use this | ||
- | |||
- | < | ||
- | ssh -p 222 root@ip.of.ser.ver "dd if=/ | ||
- | </ | ||
- | |||
- | Here is another example backing up a Sonora Advanced Router where the CF card is /dev/hdc: | ||
- | |||
- | < | ||
- | ssh root@ip.of.rou.ter "dd if=/ | ||
- | </ | ||
- | |||
- | The above command utilizes SSH's ability to run commands submitted at the end of the command line. In this case the command sequence uses the '' |