This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:storage:backup_cf_ssh [2011/11/28 15:37] gcooper |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Backing Up Your Compact Flash Using SSH ====== | ||
- | See also: [[computing: | ||
- | |||
- | This information is pretty much the same for any type of flash storage. | ||
- | |||
- | Save the entire flash (disk) image as a '' | ||
- | |||
- | Make sure SSH (server) is enabled on the machine containing the flash memory card. You may also need to open a port on the firewall (port 2222 in this example) if you need access from the Red (Internet) interface. | ||
- | |||
- | To back up a firewall/ | ||
- | |||
- | < | ||
- | ssh -p 2222 root@ip.of.ser.ver "dd if=/ | ||
- | </ | ||
- | |||
- | For SSH running on the standard port 22, you can omit the '' | ||
- | |||
- | Change the IP address to your own IP or DNS name | ||
- | |||
- | You must adjust the ''/ | ||
- | |||
- | If the system you are backing up does not have the gzip utility, use this form: | ||
- | |||
- | < | ||
- | ssh -p 2222 root@ip.of.ser.ver "dd if=/ | ||
- | </ | ||
- | |||
- | Here is another example backing up a Sonora Advanced Router where the CF card is ''/ | ||
- | |||
- | < | ||
- | ssh root@ip.of.rou.ter "dd if=/ | ||
- | </ | ||
- | |||
- | This command utilizes ssh's ability to run commands submitted at the end of the command line. In this case the command sequence uses the dd command to copy the entire physical compact flash device and then put the output into a file on your local computer. |