I am attempting to copy only certain files down a directory tree. I
know which files I want. I could generate a file of just those with
'find'. But having read the docs I have been trying to use the
--include and --exclude patterns to have rsync pick the right files
itself. But I can't figure
Wayne Davison wrote:
Bob Proulx wrote:
rsync -a --include '*/' --include '**/a1/foo' --exclude * . example.com:/tmp/
Yes, that is the way to use include/exclude without first figuring
out where all the foo files are. As you noted that results in all
directories in the tree being created
gle_color_url = "006792";
google_color_text = "00";
//-->
include/exclude patterns to copy just certain files?
Bob Proulx
Re: include/exclude patterns to copy just certain files?
Wayne Davison
Re: include/exclude patterns to copy just certain files?
Bob Proulx
gle_color_url = "006792";
google_color_text = "00";
//-->
include/exclude patterns to copy just certain files?
Bob Proulx
Re: include/exclude patterns to copy just certain files?
Wayne Davison
Re: include/exclude patterns to copy just certain files?
Bob Proulx
For some reason rsync-2.6.4 compiled by me on HP-UX 11.23 in 64-bit
mode is adding extra path elements when running in server mode. This
is a new problem. It did not used to do that with older versions and
it does not do that with compilations on other systems.
$ rsync -a
Wayne Davison wrote:
On Tue, May 03, 2005 at 05:26:10PM -0600, Bob Proulx wrote:
$ rsync -a ewok::cadroot/release/bin/ .
$ ls
bin
Is your shell stripping off trailing slashes?
Good thought. But no. Running bash. But here is a test for that.
What you see is what you get
hce wrote:
I am using rsync to backup files. Is it possible to specify an option
not to delete files from backup directory if the files are deleted
from source? In that way, I can always keep something I may or may not
need in the backup disk, but remove it from a work computer.
Perhaps you