Beginner help: Excluding directories by pattern
Kevin Korb
kmk at sanitarium.net
Sun Dec 18 12:03:17 MST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You want --exclude-from=file
You can cut-and-paste those path patterns into that file just as they are.
For the ACL errors you are probably writing to a filesystem that
doesn't support those ACLs.
On 12/18/11 13:58, Michael_google gmail_Gersten wrote:
> I apologize in advance for asking a beginner question, but I
> really could not figure this from the manual page.
>
> I want to copy some files with rsync, and not copy others.
>
> The stuff that I do not want to copy looks like this:
>
> System Volume Information/_restore*/RP* WINDOWS/Prefetch/*
> Documents and Settings/leila/Local Settings/Application
> Data/Google/Chrome/Application/*/Installer/chrome.7z Documents and
> Settings/leila/Local Settings/Application
> Data/Mozilla/Firefox/Profiles/*/Cache/*
>
> Note that there are spaces in these names. Note that there are
> wildcards in the middle of the name. Note that I'm looking to
> transfer/create an empty directory in some cases.
>
> So, just a quickie: how?
>
> My current command line for rsync looks like this:
>
> rsync -A -a --delete --rsync-path="/opt/local/bin/rsync
> --fake-super --log-file=/tmp/rlog.txt" /cygdrive/c/
> "rsync at kleiman-ibook:/Volumes/Windows\ rsync\rsync"
>
> and if there's a good way to shorten that, I'd love to know.
>
> Incidentally, I get a LOT of error messages: Kleiman-ibook:Windows
> TM michael$ head -5 /tmp/rlog.txt 2011/12/17 19:34:37 [10315]
> receiving file list 2011/12/17 19:34:39 [10315] rsync: set_acl:
> sys_acl_delete_def_file(Documents and Settings): Attribute not
> found (93) 2011/12/17 19:34:39 [10315] rsync: set_acl:
> sys_acl_delete_def_file(Documents and
> Settings/Administrator.LEILA-DELL): Attribute not found (93)
> 2011/12/17 19:34:39 [10315] rsync: set_acl:
> sys_acl_delete_def_file(Documents and
> Settings/Administrator.LEILA-DELL/Application Data): Attribute not
> found (93) 2011/12/17 19:34:39 [10315] rsync: set_acl:
> sys_acl_delete_def_file(Documents and
> Settings/Administrator.LEILA-DELL/Application Data/Identities):
> Attribute not found (93)
>
> This continues for a very long time :-).
- --
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
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/
iEYEARECAAYFAk7uOPUACgkQVKC1jlbQAQcHtQCfcoDb/K6YlmTyFOmsQzSJMcm/
cEsAn3KOm5KyA9XNWSNICS+8mFGH85ew
=pLnf
-----END PGP SIGNATURE-----
More information about the rsync
mailing list