The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
.
google unix.com



Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File Management: How do I move all JPGS in a folder structure to a single folder? guptaxpn Shell Programming and Scripting 4 06-11-2009 03:41 AM
How can I upload a zip folder on a unix path from my windows folder? ajit.yadav83 Windows & DOS: Issues & Discussions 2 01-29-2009 08:56 AM
BASH complete-filename & menu-complete together Mithu UNIX for Dummies Questions & Answers 0 01-06-2009 03:00 PM
Upload of the images from the folder to the Database table shashisaini24 UNIX for Advanced & Expert Users 0 11-29-2006 06:03 AM
Ftp Upload Folder roberthawke UNIX for Advanced & Expert Users 3 06-21-2002 01:19 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-08-2009
aneuryzma aneuryzma is offline
Registered User
  
 

Join Date: May 2009
Posts: 60
upload a complete folder

Hi,

how can I upload a complete folder (and subfolders) on ftp from terminal ?

thanks
  #2 (permalink)  
Old 09-08-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,759
It is easier to pack the directory tree into a tar ball, then send it. Windows XP and higher can open and unpack a tarball. So can any unix box.

Code:

tar -cvf  mytar.tar  /path/to/send/*
echo "
open somenode.com
USER username password
bin
cd /somewhere
put mytar.tar
bye
" | ftp -n  > ftplog.txt
  #3 (permalink)  
Old 09-14-2009
aneuryzma aneuryzma is offline
Registered User
  
 

Join Date: May 2009
Posts: 60
ok, and what's the command to unpack a tar from server
  #4 (permalink)  
Old 09-14-2009
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 453
Its the same tar command, but with other option to extract.

Code:
tar -xvf <TARFILENAME>
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0