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

- --exclude Movies/ --exclude Music/

Or put them in a text file list and use --exlcude-from

On 12/24/11 20:16, Phil Dobbin wrote:
> On Sat, 2011-12-24 at 18:26 -0500, Kevin Korb wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> The two most common problems with excludes are:
>> 
>> 1. Excluded paths are relative to the source path.  So if you
>> are rsyncing /home/username and you want to exclude
>> /home/username/Trash the path to exclude is actually /Trash.
>> 
>> 2. Mistaking the fact that the files are in the target because
>> they were already in the target for rsync actually transferring
>> them.  If they were there before you ran rsync they will still be
>> there after unless you use --delete-excluded
>> 
>> If you still don't see the problem lets start over.  Show us
>> your command line, your excludes file, and an example
>> /path/to/filename that shouldn't be copied but is.
> 
> In a similar vein (apologies if this is hi-jacking somebody elses 
> thread. Please let me know; if it is I'll start anew), I'm trying
> my first attempt at excludes.
> 
> e.g.
> 
> $ rsync -zav $HOME/phildobbin/ --exclude 'foo/'
> /destination/backup/
> 
> which works perfectly well but I'm struggling to find the right
> syntax to add about another half a dozen directories to the exclude
> list (e.g. Movies/ Music/ Virtualbox/ & so on).
> 
> Any help appreciated.
> 
> Cheers,
> 
> Phil...
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
        Kevin Korb                      Phone:    (407) 252-6853
        Systems Administrator           Internet:
        FutureQuest, Inc.               [email protected]  (work)
        Orlando, Florida                [email protected] (personal)
        Web page:                       http://www.sanitarium.net/
        PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk72enMACgkQVKC1jlbQAQfEkwCgwfWy0b6jFKjCIdwijnrRvLZf
MpIAoM6APypsKoNSlzJWTGyovWNgkFEc
=ebic
-----END PGP SIGNATURE-----
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to