Exclude directory in recursive copy
am 13.11.2007 14:32:52 von Kenneth Brun NielsenHow can I (easily) exclude a directory ("CVS") from a recursive copy?
The executed command is:
cp -vur sourcedirectory .
Best regards,
Kenneth
How can I (easily) exclude a directory ("CVS") from a recursive copy?
The executed command is:
cp -vur sourcedirectory .
Best regards,
Kenneth
On Tue, 13 Nov 2007 13:32:52 -0000, Kenneth Brun Nielsen
>How can I (easily) exclude a directory ("CVS") from a recursive copy?
>
>The executed command is:
>cp -vur sourcedirectory .
>
>Best regards,
>Kenneth
Can you use rsync? Something like
rsync -av --exclude=CVS source_dir dest_dir
Scott McMillan
Le Tue, 13 Nov 2007 13:32:52 +0000, Kenneth Brun Nielsen a écrit :
> How can I (easily) exclude a directory ("CVS") from a recursive copy?
>
> The executed command is:
> cp -vur sourcedirectory .
>
> Best regards,
> Kenneth
this should work :
find source/ -type f -exec cp {} . \;
bodman
On 2007-11-13, bodman
> Le Tue, 13 Nov 2007 13:32:52 +0000, Kenneth Brun Nielsen a écrit :
>
>> How can I (easily) exclude a directory ("CVS") from a recursive copy?
>>
>> The executed command is:
>> cp -vur sourcedirectory .
>>
>> Best regards,
>> Kenneth
>
> this should work :
>
> find source/ -type f -exec cp {} . \;
>
That would copy all the files into one directory, and wouldn't exclude
any files.
Le Tue, 13 Nov 2007 15:06:47 -0500, Bill Marcum a écrit :
> On 2007-11-13, bodman
>> Le Tue, 13 Nov 2007 13:32:52 +0000, Kenneth Brun Nielsen a écrità:
>>
>>> How can I (easily) exclude a directory ("CVS") from a recursive copy?
>>>
>>> The executed command is:
>>> cp -vur sourcedirectory .
>>>
>>> Best regards,
>>> Kenneth
>>
>> this should work :
>>
>> find source/ -type f -exec cp {} . \;
>>
> That would copy all the files into one directory, and wouldn't exclude
> any files.
right, bad reading :)