Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > recursive copy with command line ftp client

recursive copy with command line ftp client
Thread Tools
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
Feb 26, 2004, 08:41 AM
 
I want to copy whole dirs via command line (eventually I want to write a script that automates that). mput just copies several files, but not recursively.

How can I copy recursively from my computer to my webserver?
I don't suffer from insanity, I enjoy every minute of it.
     
Mac Enthusiast
Join Date: Dec 2002
Location: Newport Beach, CA
Status: Offline
Reply With Quote
Feb 26, 2004, 08:53 AM
 
I believe you want to use scp -r

man scp for details.

Be a traveler, not a tourist
     
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
Feb 26, 2004, 10:14 AM
 
I know scp already, and I wish I could use it. But I have no login on this webserver, all I can do is use ftp to copy files.

UPDATE: I cannot login, but I can use sftp and scp.
I don't suffer from insanity, I enjoy every minute of it.
     
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Feb 26, 2004, 02:05 PM
 
Install ncftp. It comes with the useful ncftpput. It allows you to do

ncftpput -f logindatafile [moreoptions] -R remotedir localdir

with logindatafile containing the remote hostname, username, and password.

-
     
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
Feb 26, 2004, 10:37 PM
 
Originally posted by Moonray:
Install ncftp. It comes with the useful ncftpput. It allows you to do

ncftpput -f logindatafile [moreoptions] -R remotedir localdir

with logindatafile containing the remote hostname, username, and password.

-
Thanx a lot. I was just a bit surprised that the regular ftp cannot do such a basic thing.
I don't suffer from insanity, I enjoy every minute of it.
     
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
Feb 27, 2004, 09:37 PM
 
Works perfect, this is doing exactly what I want to it. Thanx a lot

scp -r didn't work because I am behind a couple of routers (my provider apparently traces the IP back and can't find my computer).
I don't suffer from insanity, I enjoy every minute of it.
     
Mac Elite
Join Date: May 2001
Status: Offline
Reply With Quote
Feb 27, 2004, 11:00 PM
 
You're welcome.

-
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:56 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2