Re: Userspace cp and ls utility

Eric Sandeen
2006-07-23T14:21:57Z

Jan Dittmer wrote:
>> You could also try xfs_copy, it makes a copy of the filesystem and
>> works on the underlying device, with the filesystem unmounted.
>> There's a man page for it.
>
> Is there any difference to using dd when the destination is no xfs
> filesystem? And if I read the description correctly it does not allow
> to copy individual files?

xfs_copy knows about the xfs format, so it only copies what it needs to. dd
will copy every bit on the source disk. So, xfs_copy is more efficient. There
is no option to copy individual files.

Depending on the problem with your original filesystem, perhaps xfs_copy might
not be the best choice.

-Eric