FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 6th, 2006, 09:20 PM
jsbruns jsbruns is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2003
Location: Washington, D.C.
Posts: 623 jsbruns User rank is Private First Class (20 - 50 Reputation Level)jsbruns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 16 h 27 m 34 sec
Reputation Power: 5
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

Reply With Quote
  #2  
Old June 7th, 2006, 10:16 AM
displeaser's Avatar
displeaser displeaser is offline
Periodically energetic Perler
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2005
Location: Dublin, Ireland
Posts: 2,266 displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate Folder
Time spent in forums: 4 Weeks 5 h 23 m 13 sec
Reputation Power: 532
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.

Reply With Quote
  #3  
Old June 8th, 2006, 09:49 AM
jsbruns jsbruns is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2003
Location: Washington, D.C.
Posts: 623 jsbruns User rank is Private First Class (20 - 50 Reputation Level)jsbruns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 16 h 27 m 34 sec
Reputation Power: 5
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.

Reply With Quote
  #4  
Old June 8th, 2006, 10:03 AM
displeaser's Avatar
displeaser displeaser is offline
Periodically energetic Perler
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2005
Location: Dublin, Ireland
Posts: 2,266 displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate Folder
Time spent in forums: 4 Weeks 5 h 23 m 13 sec
Reputation Power: 532
Quote:
Originally Posted by jsbruns
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.


Ouch

If perl is installed on the OS you could run it off a floppy/usb or cd-rom.

Displeaser

Reply With Quote
  #5  
Old June 8th, 2006, 10:26 AM
jsbruns jsbruns is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2003
Location: Washington, D.C.
Posts: 623 jsbruns User rank is Private First Class (20 - 50 Reputation Level)jsbruns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 16 h 27 m 34 sec
Reputation Power: 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

Reply With Quote
  #6  
Old June 8th, 2006, 10:28 AM
displeaser's Avatar
displeaser displeaser is offline
Periodically energetic Perler
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: May 2005
Location: Dublin, Ireland
Posts: 2,266 displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)displeaser User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate FolderFolding Points: 76661 Folding Title: Intermediate Folder
Time spent in forums: 4 Weeks 5 h 23 m 13 sec
Reputation Power: 532
Thumbs up

Excellent. Glad you got a solution .

Displeaser

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Putting multiple files and directories from command line ftp


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway