Understand include exclude script
kmk at sanitarium.net
Fri Oct 19 10:18:09 MDT 2012
-----BEGIN PGP SIGNED MESSAGE-----
The - .** and .* lines are both excluding all .files and .directories
except for the ones you specifically included. For easyness of
reading I would suggest you merge the two files together with
- - .*
- - Desktop/
- - Download/
Though I don't actually suggest excluding .* since there are lots of
important configuration files that you will be excluding that way.
On 10/19/12 08:28, Marc wrote:
> i use a script to backup my homedir, that work but there are somes
> things i don't really understand.
> here my script
> rsync -arv --delete --prune-empty-dirs --include-from=include.txt
> --exclude-from=exclude /home/bob /media/usbkey
> include.txt file + .Skype/*** + .local/ + .local/share/ +
> .local/share/local-mail/*** + .mozilla/*** - .**
> exclude.txt file Desktop/ Download/ .*
> I have a lot of folder in my home: music, video, Document.
> I undersdand that it script copy skype, local-mail and mozilla
> content. -.** means exclude other?
> and for exlude file: exclude Desktop, Download and .* means all
> also why music, video and document are copied, is there something
> in the script who said to copy it?
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.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the rsync