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

If you want find to generate your list use --files-from:

find . -type f -atime -1 -print0 | rsync -aP --files-from=- --from0 .
10.0.0.11:/Volumes/Drive5/

On 08/17/2015 02:13 AM, @lbutlr wrote:
> I was trying to process a bunch of folders to sync them to another
> drive and ran across an error I haven’t seen before. Normally I do
> this sync via a mounted file system, but this time I tried to do it
> over ssh:
> 
> find . -type f -atime -1 -exec rsync -aP {}
> 10.0.0.11:/Volumes/Drive5/{} \; bash: -c: line 0: syntax error near
> unexpected token `(' bash: -c: line 0: `rsync --server
> -logDtpre.iLsfx --log-format=X --partial . /Volumes/Drive5/./Taxes
> (2012)/W2 (2012).pdf' rsync: connection unexpectedly closed (0
> bytes received so far) [sender] rsync error: error in rsync
> protocol data stream (code 12) at io.c(226) [sender=3.1.1]
> 
> If I mount Drive5 and run the same command, it works fine.
> 
> Put "/Volumes/Drive5/{}” in quotes doesn’t help.
> 
> Ideas?
> 

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

iEYEARECAAYFAlXRsdYACgkQVKC1jlbQAQemkwCgmpxsHaVMdzvS4WI8HGzhyPaM
IUwAnjqSGzNXNFOQlGUVm+lHktgxVBzL
=OV94
-----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