-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I forgot the --delete.  Also, note that it will not delete an entire
account that you have deleted from the source as /home/* will no
longer match them.

On 07/02/13 12:29, Kevin Korb wrote:
> rsync -aRzv /etc /home/*/.maildir rsyncuser@hostname:
> 
> On 07/02/13 08:17, Grant wrote:
>> I'm trying to use wildcards and nested files and I think there
>> must be a better way than what I'm doing.  If I want to copy only
>> these two directories:
> 
>> /etc /home/*/.maildir
> 
>> Is this the best way to do it:
> 
>> rsync -arzv --delete-excluded --files-from 'files-from.txt' 
>> --include-from 'include-from.txt' --exclude-from
>> 'exclude-from.txt' / rsyncuser@hostname:
> 
>> files-from.txt: /etc
> 
>> include-from.txt: /home /home/* /home/*/.maildir
> 
>> exclude-from.txt: /home/*/*
> 
>> - Grant
> 
> 
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
        Kevin Korb                      Phone:    (407) 252-6853
        Systems Administrator           Internet:
        FutureQuest, Inc.               ke...@futurequest.net  (work)
        Orlando, Florida                k...@sanitarium.net (personal)
        Web page:                       http://www.sanitarium.net/
        PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlHTAGcACgkQVKC1jlbQAQcLcACfRnjxF/IcgupZYd0pX6DOZTqL
wP0An2W55Xy5u5yL3dtgnhSxdylAS5sZ
=59PB
-----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

Reply via email to