[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

exclude option for cp

From: Francky Leyn
Subject: exclude option for cp
Date: Sun, 24 Jun 2007 10:29:59 +0200
User-agent: Thunderbird (Windows/20070509)


I have the following problem.
I have DVD's with backups of multiple UNIX account.
I now have to restore them. I do this with cp -rfv.
What I would like is that I would be able to exclude
local wastebaskets with directory name .scratch and
the files in it. I would also like to be able to exclude
files with a name *~ from the copy. I know I can do this
with find, but it would be much more convenient if cp
would have an option to exclude files from copying.
Suppose this option would be triggered with -e or --exclude
I then would be able to specify the copy as:
cp -rvf -e '*~' -e .scratch

What about the idea?

Is someone willing to implement this?

Best regards,

Francky Leyn

reply via email to

[Prev in Thread] Current Thread [Next in Thread]