For backup reasons I need to use dd to copy a whole hard drive (including MBR, partitions,...). The hard drive is 80 GB in size where only 1.8 GB are used.
The command I'm using is the following:
dd if=/dev/sda bs=8M | gzip -9 > /mnt/backupserver/ddCopy.bin.gz
My question here is: Is that already the best way to minimalize how much space is used, or is there any other (better way?)
To take the above example with the 1.8 GB used on a 80 GB drive....the copy takes up way over 2 GB despite the zipping.
Edit as it was asked in a comment here the details about sda:
- Contains a NTFS partition whose size is 80 GB (as that whole drive only has 1 partition)
- du says 1.8 GB of sda are in use
- Contains a windows xp as OS