Re: Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable to canonicalise path"

2011-05-20 Thread Selim T. Erdogan
Clive Standbridge, 19.05.2011 tarihinde şöyle yazmış:
> > >  
> > >  I am attempting to upload files onto my webserver using sftp.  As
> > >  far as I can 
> > >  tell from reading the man pages and searching online, the correct
> > >  syntax once 
> > >  connected via sftp is:
> > >  
> > >  put -r * 
> > 
> > I'm no expert myself, but shouldn't that be
> > 
> >mput *
> 
> mput doesn't seem to be an sftp command. Maybe you were thinking of
> lftp? But lftp's mput command doesn't appear to do recursion. lftp has
> a reverse mirror command "mirror -R" which looks like it will do the
> job. You can connect to an sftp server with lftp using a command like
> lftp sftp://username@host/path/to/dir
> 
> Another alternative would be to use rsync e.g.
> rsync -aiz files username@host:/path/to/dir

Yet another alternative might be scp instead of sftp.  I use "scp -pr" 
often.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110521015402.ga5...@cs.utexas.edu



Re: Re: Bug#611380: openssh-client: sftp's put -r fails with "Unable to canonicalise path"

2011-05-19 Thread Clive Standbridge
> >  
> >  I am attempting to upload files onto my webserver using sftp.  As
> >  far as I can 
> >  tell from reading the man pages and searching online, the correct
> >  syntax once 
> >  connected via sftp is:
> >  
> >  put -r * 
> 
> I'm no expert myself, but shouldn't that be
> 
>mput *

mput doesn't seem to be an sftp command. Maybe you were thinking of
lftp? But lftp's mput command doesn't appear to do recursion. lftp has
a reverse mirror command "mirror -R" which looks like it will do the
job. You can connect to an sftp server with lftp using a command like
lftp sftp://username@host/path/to/dir

Another alternative would be to use rsync e.g.
rsync -aiz files username@host:/path/to/dir

-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110519213653.ga10...@rimmer.esmertec.com