- From the bash prompt, log into the FTP server with your username and password.
- Change into the preferred directory with the “cd” command.
- If doing a restore, issue the “dir” command to list the directory’s contents to find the correct filename of the disk image you want to restore.
- To backup a disk image onto the FTP server using “dd”, replace your disk’s path (/dev/sda) and issue the following command:
put "|dd if=/dev/sda" backupImageName.dd
To restore a disk image off of the FTP server, replace your disk’s path (/dev/sda) and issue the following command:
get backupImageName.dd "|dd of=/dev/sda"
Obviously, if you are unfamiliar with using “dd”, then you should probably look at a few tutorials before attempting this. Especially in cases where you want to back up just a single partition instead of a whole disk including all of it’s partitions as the example above. Use at your own risk as you can easily smoke the wrong partition or cause your system to no longer boot. If you’re daring enough to try this on the disk your operating system is currently running on, you would have to reboot for it to take effect.