See also: Working with Disk Images
This information was taken from the IPCop firewall/router documentation.
You may want to save the 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/router from a Unix or Linux machine or Cygwin on a Windows machine issue:
ssh -p 222 This e-mail address is being protected from spambots. You need JavaScript enabled to view it "dd if=/dev/harddisk" | gzip > backup.img.gz
- for other than IPCop, you can omit the '-p 222'
- SSH is normally on port 22
- change the IP address to your own IP or DNS name
- You can adjust the '/dev/harddisk' to meet your needs
- IPCop has symbolic links fo /dev/harddisk*
- CF cards are often /dev/hda or /dev/hdb
- /dev/sda (first SCSI disk) is common for USB flash drives
- if the system you are backing up does not have the gzip utility, use this
ssh -p 222 This e-mail address is being protected from spambots. You need JavaScript enabled to view it "dd if=/dev/harddisk" > backup.img
Here is another example backing up a Sonora Advanced Router where the CF card is /dev/hdc:
ssh This e-mail address is being protected from spambots. You need JavaScript enabled to view it "dd if=/dev/hdc" | gzip > backup.img.gz
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.
| < Prev | Next > |
|---|





