GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   ftp commands quick question (https://gfy.com/showthread.php?t=323592)

michael2002 07-08-2004 02:50 PM

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) :(

dgraf 07-08-2004 02:57 PM

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.

More Booze 07-08-2004 03:01 PM

I think you are able to do it via SSH, cant you use that?

michael2002 07-08-2004 03:01 PM

mput -r don't work

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

any others ideas?

michael2002 07-08-2004 03:02 PM

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

s9ann0 07-08-2004 03:28 PM

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 07-08-2004 03:29 PM

tar -cf directory.tar directory
in php


PHP Code:

system("tar -cf ./directory.tar ./directory &"); 


dgraf 07-08-2004 03:31 PM

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.

raymor 07-08-2004 07:23 PM

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


All times are GMT -7. The time now is 01:09 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123