Cannot get the syntax of --include-from right

Kevin Korb kmk at sanitarium.net
Fri Sep 16 10:40:56 MDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Also, includes only override excludes (which I see you are doing) but
they must be specified BEFORE the exclude they override.  IOW, your
include of .vimrc must be before your exclude of .* or it will not do
anything.

On 09/16/11 11:47, Steven Levine wrote:
> In <CAAykW6mMRiTVqt0KrrcgYiwNvz7kjHNQC76=rJc+c=+Qpg3b3Q at mail.gmail.com>,
> on 09/16/11
>    at 07:34 PM, Robert Parker <rlp1938 at gmail.com> said:
> 
> HI Robert,
> 
>> nice -n 15 rsync -avl --exclude=".*" \
>> --include-from="/home/bob/backup_includes" \
>> "$fromdir" "$todir"
> 
>> Here is the content of /home/bob/backup_includes
> 
>> /home/bob/.vimrc
>> /home/bob/.gitconfig
> 
> The paths in your --include-from file must be relative to $fromdir.
> 
> In general, this is true of all paths other than paths specified on the
> command line.
> 
> The paths on the command line effectively create logic roots and the other
> paths will be relative to these paths.
> 
> Steven
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at FutureQuest.net  (work)
	Orlando, Florida		kmk at sanitarium.net (personal)
	Web page:			http://www.sanitarium.net/
	PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5zfBgACgkQVKC1jlbQAQdcIwCfZKIJk9pixLywS91plqveWy/X
lQMAnR3klzsRwX26esWe8YfEuzLGp+gH
=OeR3
-----END PGP SIGNATURE-----


More information about the rsync mailing list