Where is my --password-file?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Where is my --password-file?

Janos Dohanics

I am trying to back up a Windows box using rsync and I get this error
message:

rsync: link_stat
"/home/Administrator/password-file=/home/Administrator/rsync_passwd"
failed: No such file or directory (2)

But the file is there:

$ ls -al /home/Administrator/rsync_passwd
-rw-r--r--  1 Administrator Domain Users 10 Dec 12 16:02
/home/Administrator/rsync_passwd

What am I missing?

Janos Dohanics

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

Reply | Threaded
Open this post in threaded view
|

RE: Where is my --password-file?

Dave Korn
jd wrote:

> I am trying to back up a Windows box using rsync and I get this error
> message:
>
> rsync: link_stat
> "/home/Administrator/password-file=/home/Administrator/rsync_passwd"
> failed: No such file or directory (2)
>
> But the file is there:
>
> $ ls -al /home/Administrator/rsync_passwd
> -rw-r--r--  1 Administrator Domain Users 10 Dec 12 16:02
> /home/Administrator/rsync_passwd
>
> What am I missing?
>
> Janos Dohanics

  The fact that it's not looking for a file called
    "/home/Administrator/rsync_passwd"
but one called
    "/home/Administrator/password-file=/home/Administrator/rsync_passwd"
which probably doesn't exist.....

  Perhaps you have a mistake in the command line you're using?  Perhaps you've
typed "~password-file=XXXX" when you meant to say "--password-file=XXXX"?
Yep, that's probably it.  You typed a tilde instead of a dash and it's being
expanded to your home dir path.

    cheers,
      DaveK
--
Can't think of a witty .sigline today....


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

Reply | Threaded
Open this post in threaded view
|

RE: Where is my --password-file?

Janos Dohanics
At 07:35 AM 12/14/2005, you wrote:

>jd wrote:
> > I am trying to back up a Windows box using rsync and I get this error
> > message:
> >
> > rsync: link_stat
> > "/home/Administrator/password-file=/home/Administrator/rsync_passwd"
> > failed: No such file or directory (2)
> >
> > But the file is there:
> >
> > $ ls -al /home/Administrator/rsync_passwd
> > -rw-r--r--  1 Administrator Domain Users 10 Dec 12 16:02
> > /home/Administrator/rsync_passwd
> >
> > What am I missing?
> >
> > Janos Dohanics
>
>   The fact that it's not looking for a file called
>     "/home/Administrator/rsync_passwd"
>but one called
>     "/home/Administrator/password-file=/home/Administrator/rsync_passwd"
>which probably doesn't exist.....
>
>   Perhaps you have a mistake in the command line you're using?  Perhaps
> you've
>typed "~password-file=XXXX" when you meant to say "--password-file=XXXX"?
>Yep, that's probably it.  You typed a tilde instead of a dash and it's being
>expanded to your home dir path.
>
>     cheers,
>       DaveK
>--
Dave,

actually, this is the command I have used:

rsync -avz "/cygdrive/e/Company"
password-file="/home/Administrator/rsync_passwd" --delete --delete-excluded
--exclude "Office2003/" --exclude "Office2003SP/"
server1@192.168.30.17::winbackups/ > /home/Administrator/rsync_server1.log

Janos Dohanics


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

cygcheck.out.txt (21K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Where is my --password-file?

Jan Schormann
In reply to this post by Janos Dohanics
You wrote on Wednesday, December 14, 2005 1:56 PM:

> actually, this is the command I have used:
>
> rsync -avz "/cygdrive/e/Company"
> password-file="/home/Administrator/rsync_passwd" --delete
> --delete-excluded
> --exclude "Office2003/" --exclude "Office2003SP/"
> server1@192.168.30.17::winbackups/ >
> /home/Administrator/rsync_server1.log

Right, you've missed the "--" in front of "password-file=...".

Rsync thinks that 'password-file="/home/Administrator/rsync_passwd"'
is a file, not a parameter, and boom.

HTH,
        Jan.


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

Reply | Threaded
Open this post in threaded view
|

RE: Where is my --password-file?

Dave Korn
In reply to this post by Janos Dohanics
web wrote:

> Dave,
>
> actually, this is the command I have used:
>
> rsync -avz "/cygdrive/e/Company"
> password-file="/home/Administrator/rsync_passwd" --delete
> --delete-excluded --exclude "Office2003/" --exclude "Office2003SP/"
> server1@192.168.30.17::winbackups/ > /home/Administrator/rsync_server1.log
>
> Janos Dohanics


  Yeh, that was a bit of a hasty suggestion on second thoughts, after all
tilde expansion only happens if the "~" is followed by a "/".

  However you have left the "--" off the "password-file" option, so it thinks
the whole thing is a file name to rsync!  And because it doesn't start with a
"/", it's a relative path, and you're running in your home dir when you
execute the command, so it expands that by prepending the cwd path....


    cheers,
      DaveK
--
Can't think of a witty .sigline today....


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

Reply | Threaded
Open this post in threaded view
|

RE: Where is my --password-file?

Janos Dohanics
In reply to this post by Jan Schormann
At 08:03 AM 12/14/2005, you wrote:

>You wrote on Wednesday, December 14, 2005 1:56 PM:
>
> > actually, this is the command I have used:
> >
> > rsync -avz "/cygdrive/e/Company"
> > password-file="/home/Administrator/rsync_passwd" --delete
> > --delete-excluded
> > --exclude "Office2003/" --exclude "Office2003SP/"
> > server1@192.168.30.17::winbackups/ >
> > /home/Administrator/rsync_server1.log
>
>Right, you've missed the "--" in front of "password-file=...".
>
>Rsync thinks that 'password-file="/home/Administrator/rsync_passwd"'
>is a file, not a parameter, and boom.
>
>HTH,
>         Jan.

Grrrrrrrrr! Thank you both.

Janos Dohanics



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