Problem with excludes and includes

Robert Parker rlp1938 at gmail.com
Sun Feb 26 10:42:06 MST 2012


On Mon, Feb 27, 2012 at 12:34 AM, Kevin Korb <kmk at sanitarium.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> In your replies I am seeing doubled - signs. I am unsure if that is an
> artifact of one of our email clients or if that is what you were
> actually using. There should only be one - on those lines. The line
> that says "- .*" should exclude any file that starts with a . other
> than the specific examples previously listed as "+ .file".
>

Thanks. That will be the problem because I just copy/ pasted the content of
the email as it was.
I made the single '-' and I'm running it now and Downloads/Iso is copying
but none the rubbish that was going before.
I think that this is now solved.


> On 02/26/12 12:31, Robert Parker wrote:
> > Oops I'm now getting all the dot files and all the rubbish from
> > Downloads. I put the lines you gave me into 'backup_excludes'.
> > Should I have used some other file?
> >
> > Bob
> >
> > On Mon, Feb 27, 2012 at 12:17 AM, Robert Parker <rlp1938 at gmail.com
> > <mailto:rlp1938 at gmail.com>> wrote:
> >
> > Thanks I'll try that right away. Bob
> >
> >
> > On Sun, Feb 26, 2012 at 11:04 PM, Kevin Korb <kmk at sanitarium.net
> > <mailto:kmk at sanitarium.net>> wrote:
> >
> > Things get much easier if you only use one file and use the +/-
> > syntax.  Here is a quick rewrite of your file using that syntax
> > and some changes and comments:
> >
> > + .vimrc + .gitconfig + .bash_aliases + .bashrc # Exclude all
> > .files except the ones commented above - .* - *~ # Have to include
> > this or rsync will never see Playlist + Videos/Music/ +
> > Videos/Music/Playlist/ # Can't exclude Videos/ because then rsync
> > will never look inside it - Videos/* + Downloads/Iso/ -
> > Downloads/* - Dropbox
> >
> > On 02/26/12 09:54, Robert Parker wrote:
> >> Hi Folks,
> >
> >> I can't get the syntax of --include-from right, nothing at all
> >> gets transferred.
> >
> >> The rsync command: # do the backup nice -n 15 rsync -av \
> >> --include-from="/home/bob/backup_includes" \
> >> --exclude-from="/home/bob/backup_excludes" \ $fromdir $todir
> >
> >> The excludes file: .* *~ Videos/ Downloads/ Dropbox/
> >
> >> The includes file: .vimrc .gitconfig .bash_aliases .bashrc
> >> Videos/Music/Playlist/ Videos/Music/Originals/ Downloads/Iso/
> >
> >> I've spent hours on the man page getting nowhere.
> >
> >> Thanks Bob
> >
> >
> >
> >
> >
> >
> > -- 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
> >
> >
> >
> >
> > -- The healthy eating pyramid as published by the USFDA and it's
> > satellites all over the world is purposely designed to bring about
> > an epidemic of obesity, hypertension and diabetes. It is wildly
> > successful in this aim.
> >
> >
> >
> >
> > -- The healthy eating pyramid as published by the USFDA and it's
> > satellites all over the world is purposely designed to bring about
> > an epidemic of obesity, hypertension and diabetes. It is wildly
> > successful in this aim.
>
> - --
> ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
>        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/
>
> iEYEARECAAYFAk9KbRwACgkQVKC1jlbQAQd4SQCg+ToKjHKnXPhLopLsbozdjBW3
> pzQAn0XQ9kD6cPGmgjt/uI52M9x7n3S6
> =6/BC
> -----END PGP SIGNATURE-----
>



-- 
The healthy eating pyramid as published by the USFDA and it's satellites
all over the world is purposely designed to bring about an epidemic of
obesity, hypertension and diabetes. It is wildly successful in this aim.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20120227/64ef3a8e/attachment.html>


More information about the rsync mailing list