Adrian –

 

What were you trying to accomplish ?

 

A file called /backup1 on the target machine

or did you want to place a copy of testfile.txt

in a folder called /backup1/ on the target box

or were you trying to do something altogether

different ?

 

Rsync’s trailing slash handling is very subtle.

 

see:  man rsync

 

HTH.

 

-- kjh

 

 

From: Adrian H [mailto:adrianh.bsc@gmail.com]
Sent: Sunday, April 29, 2012 11:00 PM
To: MinGW Users List
Subject: Re: [Mingw-users] rsync: mkstemp "/.backup1.IC8E65" failed: Permission denied (13)

 

Honestly it didn't work.  I just tried the same command again without issue.  I have no idea what changed.  o.O

Very odd.  Without the trailing slash, it creates a file by that name if it doesn't exist or puts the file in that directory if it does exist, with a trailing slash, it creates a directory if it doesn't exist.


A

On Sat, Apr 28, 2012 at 7:30 PM, Konrad Hambrick <konrad@payplus.com> wrote:

 

Adrian –

 

Is /backup1 a directory on 192.168.56.101 ?

 

If so, what happens if you add a trailing slash after backup1 ?

 

   rsync -t testfile.txt adrian@192.168.56.101:/backup1/

 

HTH ...

 

-- kjh

 

 

 

From: Adrian H [mailto:adrianh.bsc@gmail.com]
Sent: Saturday, April 28, 2012 11:03 AM
To: MinGW Users List
Subject: [Mingw-users] rsync: mkstemp "/.backup1.IC8E65" failed: Permission denied (13)

 

Hi all,

I am having trouble using rsync that is available with MinGW.  My command is:

rsync -t testfile.txt adrian@192.168.56.101:/backup1


The result is:

adrian@192.168.56.101's password: <I enter my password here>
rsync: mkstemp "/.backup1.IC8E65" failed: Permission denied (13)
rsync error: some files/attrs were not transferred (see previous errors) (code 2
3) at /usr/src/rsync/rsync-3.0.8/main.c(1052) [sender=3.0.8]


This works fine when I use cygwin.  Any idea why this doesn't work under MinGW?

Thanks,


A


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe




--
========================================
            Adrian Hawryluk
         BSc. Computer Science
----------------------------------------
           Specialising in:
        OOD Methodologies in UML
  OOP Methodologies in C, C++ and more
        RT Embedded Programming
            GUI Development
========================================