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 debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: 
> http://lists.debian.org/abf06b01-fe96-44da-b00d-fb16ee6e8...@halblog.com

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 debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110109222232.ga2...@galactic.demon.co.uk

Reply via email to