View Full Version : getting folders with sftp
orlox
May 7th, 2006, 03:52 PM
Hi, i'm trying to use sftp to retrieve a folder from a server, but when i try doing a get, this is what happens (the folder im trying to get is "imagenes"):
sftp> get imagenes
Fetching /opt/apache-tomcat-5.5.17/webapps/grupo11/imagenes to imagenes
Cannot download non-regular file: /opt/apache-tomcat-5.5.17/webapps/grupo11/imagenes
am I doing this right?...or to get a folder you need to do somehing else?
souki
May 7th, 2006, 04:06 PM
you can't do a recursive get with sftp
you should use scp instead
scp -r user@host:/the/path/ .
orlox
May 7th, 2006, 04:18 PM
I used scp and got this:
pablo@pcpablo:~/workspace/iic3592$ scp grupo11@kegan.ing.puc.cl:public_html/ -r
Password:
scp: public_html: not a regular file
pablo@pcpablo:~/workspace/iic3592$
I changed the location of the -r cause otherwise, it would give away a "usage" message...still get the same message that sftp gave me: "not a regular file"...
souki
May 7th, 2006, 04:21 PM
you have to use absolute path, see my previous post
NB: don't forget the '.' at the end, it is the destination directory (I don't know if omiting it works)
orlox
May 7th, 2006, 04:30 PM
Done !
thanks for your help...
Tyson D
July 14th, 2010, 02:54 AM
Perfect! it worked for me too.
jumpgap
October 11th, 2011, 12:26 AM
thanks for the post. helped me also.
slavik
October 11th, 2011, 05:53 AM
old thread.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.