Following situation: There is a Ubuntu 10.10 Server running with many custom configurations and programs (can't set it up from scratch). One of these programs stores a lot of data (> 1TB) in /var/ProgA/. The physical drive is 2TB in size and I don't have another one lying around to create a full size image on it. Excluding the data of ProgA the whole machine takes only up about 30GB of harddisk.
Question: How can I create a virtual machine from it and exclude the /var/ProgA directory so I end up with a 50GB virtual image?
What I found so far (dd and QEMU) always clones the whole disk. I searched the net for a while now, but had no luck. Maybe somebody can point me in the right direction.