On Sun, Jan 09, 2011 at 02:21:22PM -0500, Hal Vaughan wrote:
> I have a 10 GB partition that is nowhere near full, less than 5 GB of data on 
> it (far less).  Unfortunately, the partition I'd like to copy it to is 5 GB.  
> I can do "rsync -av" but normally I'd use DD.  Is there a way to copy an 
> image of just the files from one drive to another?  For example, an 
> intelligent DD that won't copy unused sectors, or will create an archive of 
> just the files?
> 
> 
> Thanks!
> 
> 
> 
> Hal
> 
> --
> To UNSUBSCRIBE, email to [email protected]
> with a subject of "unsubscribe". Trouble? Contact [email protected]
> Archive: 
> http://lists.debian.org/[email protected]

change to where you want the data to go to.

rsync -pavz --delete <source directory> .

If the rsync fails, you can always restart it. Works for me and is quick.

All the best,

AndyC


-- 
To UNSUBSCRIBE, email to [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to