Understand include exclude script
Marc
marcpirat at yahoo.com
Fri Oct 19 14:34:26 MDT 2012
if i merge this config, i need to put it in include file?
i tried and it copied all file and folder
also why in my old script some folder like music, video and document was copied while i don't wrote to do it?
----- Original Message -----
From: Kevin Korb <kmk at sanitarium.net>
To: rsync at lists.samba.org
Cc:
Sent: Friday, October 19, 2012 6:18:09 PM
Subject: Re: Understand include exclude script
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
something like:
+ .Skype/***
+ .local/
+ .local/share/
+ .local/share/local-mail/***
+ .mozilla/***
- - .*
- - 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:
> hi
>
> 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
> other?
>
> also why music, video and document are copied, is there something
> in the script who said to copy it?
>
> thanks
>
- --
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
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/
iEYEARECAAYFAlCBfUEACgkQVKC1jlbQAQczwgCfT9KM9A3s3i5aPMJvP0jiBWlX
NQUAoK9VHJikqljUsaWzVQe9X/ScdenU
=g7rR
-----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
More information about the rsync
mailing list