[Leaplist] copy a hard drive to another different sized partition.

Phil Barnett philb at philb.us
Thu Aug 30 21:33:42 EDT 2007


On Thursday 30 August 2007, Richard F. Ostrow Jr. wrote:
> Be careful there, looks like you're also going to copy /mnt/destination
> into /mnt/destination into /mnt/destination/mnt/destination into... you
> get the point :)
>
> Make sure to exclude /mnt/destination from the find operation:
>
> find / -x -d -not -name /mnt/destination/* | cpio -pdm /mnt/destination
>
> Note that -xdev and -depth are deprecated parameters (-x and -d are the
> new equivalents)

-xdev keeps it from going into other file systems.

-- 
Phil Barnett
AI4OF
SKCC #600


More information about the Leaplist mailing list