excluding dot file/dir only in user home dir
Kevin Korb
kmk at sanitarium.net
Mon Nov 14 11:59:29 MST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Assuming that the rsync source is the user's home dir: --exclude='/.*'
If you are backing up all of /home and want the same rules for all
users then: --exclude='/*/.*'
On 11/14/11 13:57, Fabrizio Pollastri wrote:
> Hi all, I am looking for the proper rsync command to backup a whole
> user dir recursively, excluding dot file/dir at the first level
> (user home) but not in subdirectories.
>
> TIA, Fabrizio Pollastri
- --
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
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/
iEYEARECAAYFAk7BZREACgkQVKC1jlbQAQcCfQCgvBMJo7YmMddcHL8LI+Qzl7Qu
tEMAnA7qYmFPZK8T+uUmx1e+cBkgzkUN
=w/ZY
-----END PGP SIGNATURE-----
More information about the rsync
mailing list