X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 749343858C2C
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=dinwoodie.org
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinwoodie.org
Date: Fri, 25 Mar 2022 09:45:47 +0000
From: Adam Dinwoodie <adam@dinwoodie.org>
To: cygwin@cygwin.com
Subject: Re: rsync gives me error 12
Message-ID: <20220325094547.rzavvuqv3nhg4s6y@lucy.dinwoodie.org>
References: <0d373fe499f6e363740f3d3fa1dfd440@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <0d373fe499f6e363740f3d3fa1dfd440@mail.gmail.com>
X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 KAM_NUMSUBJECT, RDNS_DYNAMIC, SPF_HELO_PASS, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: cygwin@cygwin.com
Content-Type: text/plain; charset="utf-8"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 22P9k7X5022149

On Thu, Mar 24, 2022 at 12:22:12AM -0500, Neil Aggarwal wrote:
> I am trying to use rsync to pull all backups from a linux server
> to my local Windows machine.
> 
> I tried this rsync command:
> 
> $ rsync --debug=ALL -e ssh root@marketing.propfinancing.com:/var/www/svnDumps
> /cygdrive/c/Tmp
> 
> Here is the output:
> 
> opening connection using: ssh -l root marketing.propfinancing.com rsync
> --server --sender -e.LsfxCIvu . /var/www/svnDumps  (10 args)
> 
> 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.3]
> 
> rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
> 
> rsync error: error in rsync protocol data stream (code 12) at io.c(228)
> [Receiver=3.2.4dev]
> 
> [Receiver] _exit_cleanup(code=12, file=io.c, line=228): about to call
> exit(12)
> 
> From what I can find online, code 12 is insufficient disk space, missing
> remote
> rsync, or a connection error.   I don’t think any of those are the case
> here and the
> debug output is not helping me.
> 
> Any ideas what could be happening?

I suspect the `-e ssh` part is the problem here.  That's supposed to
specify the remote shell, not the method for connecting.  What are you
attempting to achieve with that?

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

