When dealing with USB backups, I would traditionally just mount and rsync to the device, with a simple script like this :

mount /dev/sdc1 /mnt

rsync /home /mnt

umount /dev

This approach fails though when the device is unplugged while …

THE DD COMMAND


The dd command copies an amount of data block by block. The most basic syntax is:

Format
# dd if=xxxxx of=yyyyy bs=zzzzzz
( Where if=xxxxx is the source, of=yyyyy is the target and bs= both read and…