Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-08-2004, 02:50 PM   #1
michael2002
Confirmed User
 
Join Date: Jan 2003
Posts: 145
ftp commands quick question

what is the ftp command to transfer multiple directories from a server to another? i've tryied 'mput' but don't work becouse mput is just for file (not directories)
michael2002 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 02:57 PM   #2
dgraf
Confirmed User
 
Join Date: Jun 2004
Posts: 133
You can try -r parametr ... or something like help, help mput :-)
It depends on the FTP client you are using. It is not general to the FTP protocol itself, that is why the answer could not be definite.
dgraf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 03:01 PM   #3
More Booze
Confirmed User
 
Join Date: Mar 2004
Posts: 5,116
I think you are able to do it via SSH, cant you use that?
More Booze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 03:01 PM   #4
michael2002
Confirmed User
 
Join Date: Jan 2003
Posts: 145
mput -r don't work

help mput:
ftp> help mput
mput send multiple files
ftp>

any others ideas?
michael2002 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 03:02 PM   #5
michael2002
Confirmed User
 
Join Date: Jan 2003
Posts: 145
Quote:
Originally posted by More Booze
I think you are able to do it via SSH, cant you use that?
i use ftp via SSH from console line
michael2002 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 03:28 PM   #6
s9ann0
Confirmed User
 
Join Date: Sep 2001
Location: Boston
Posts: 4,873
best way is to tar -it up and move it
if you haven't got shell then make a cgi or a php script to do it
s9ann0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 03:29 PM   #7
s9ann0
Confirmed User
 
Join Date: Sep 2001
Location: Boston
Posts: 4,873
tar -cf directory.tar directory
in php


PHP Code:
system("tar -cf ./directory.tar ./directory &"); 
s9ann0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 03:31 PM   #8
dgraf
Confirmed User
 
Join Date: Jun 2004
Posts: 133
Quote:
Originally posted by michael2002
mput -r don't work

help mput:
ftp> help mput
mput send multiple files
ftp>

any others ideas?
It says "multiple files". I think your FTP client is unable to put recursive directory trees. It can just handle multiple files uploading. Use better FTP client or onother method, e.g. mentioned before scp.
dgraf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-08-2004, 07:23 PM   #9
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Rather than using the command "ftp" try "ncftp".
NcFTP is a more full featured ftp client that
includes recursive get and put with the "-r" option:

[[email protected]] $ ncftp -u username hostname.com
> put -r somedir
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.