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

It is true that you don't need the {} in the remote arg but due to the
syntax you probably want --relative instead.

On 08/17/2015 07:03 PM, Wayne Davison wrote:
> 
> On Sun, Aug 16, 2015 at 11:13 PM, @lbutlr <krem...@kreme.com 
> <mailto:krem...@kreme.com>> wrote:
> 
> find . -type f -atime -1 -exec rsync -aP {} 
> 10.0.0.11:/Volumes/Drive5/{} \;
> 
> 
> The use of "{}" on the receiving (remote) side is superfluous --
> just specifying a destination dir (your .../Drive5/ path) is enough
> for rsync to use the same name as the source file on the
> destination. For those instances where you want/need to specify a
> remote filename, see the --protect-args (-s) option (which you can
> make the default via "export RSYNC_PROTECT_ARGS=1", and which will
> eventually become the default in the future).  Finally, the
> suggestion to use --files-from=- is a good one, which fixes all
> quoting issues even on the local side.
> 
> ..wayne..
> 
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,
- -*~
        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

iEYEARECAAYFAlXSaQ0ACgkQVKC1jlbQAQdMQQCeLRiV9+d6Pc6ZmBzc0VNQOX3O
b/MAoMy8+TtJJfai0i9SLDsvPc+ki0lc
=NRoX
-----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