|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Putting multiple files and directories from command line ftp
I'm used to using cuteftp but I need to ftp from the command line. I want to put an entire directory, along with sub directories and files using command line ftp.
I know that with CuteFTP I just have to highlight the directory and click upload, and it automatically creates the directory and all subdirectories, and recursively enters those directories and puts their respective files. Is this possible via command line ftp? Thanks |
|
#2
|
||||
|
||||
|
I doubt it (at least in windows). You could script it easily enough if you use Perl or some other scripting language. Also some cmd line ftp clients (other the the one with the OS) can be downloaded and probably do what you want.
Displeaser
__________________
Vi Veri Veniversum Vivus Vici. |
|
#3
|
|||
|
|||
|
Yeah, I didn't think so. I have a great perl script that mirrors everything on one site to another. Problem is that the box I'm having issues with has a corrupt HD and the kernel has mounted a read only filesystem so I can't write this perl script.
Thanks for your help. |
|
#4
|
||||
|
||||
|
Quote:
Ouch If perl is installed on the OS you could run it off a floppy/usb or cd-rom. Displeaser |
|
#5
|
|||
|
|||
|
Unfortunately, my server is in a data center which, while not impossible, inconvenient.
BUT.... I found my solution!! scp - Secure Copy... Code:
[root@mybrokenserver]scp -r /some/directory/to/transfer username@mynewserver.com:/new/directory/to/receive/file/ The username obviously must have shell access, it will prompt for a password and done! The -r argument says to recursively add directories. My life just got much easier! http://www.die.net/doc/linux/man/man1/scp.1.html |
|
#6
|
||||
|
||||
|
Excellent. Glad you got a solution
.Displeaser |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > Putting multiple files and directories from command line ftp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|