C.5. Backing Up Your Compact Flash Using ssh

The normal IPCop backup facilities are available when running from a compact flash. In addition, it may be worthwhile for you to save the entire compact flash image as an .img file. This way, in case you want to create a new compact flash with your entire configuration on it, you can use the .img file to create it.

Turn on ssh via the web page. Then from a Unix or Linux machine or Cygwin on a Windows machine issue:

$ ssh -p 222 [email protected] "dd if=/dev/harddisk >backup.img"

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.