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 > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Issue With File Permissions while uploading Ariean SUN Solaris 4 01-29-2009 04:06 PM
uploading directories via SFTP mab623 Shell Programming and Scripting 2 10-12-2007 05:14 PM
Perl Uploading Files sstevens UNIX for Advanced & Expert Users 16 02-24-2004 03:03 PM
uploading SeeD UNIX for Dummies Questions & Answers 6 09-12-2003 10:25 PM
uploading Zipped files get 553 error CoastGuard1970 UNIX for Dummies Questions & Answers 3 06-27-2002 03:09 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-09-2009
greetea greetea is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 2
help uploading directories with SFTP

Hi, I am a newbie and not really familiar with commands, I have searched the forum, but there was only one thread. That thread suggested compressing it and then decompressing it. So I am wondering, what format do I compress it to, and how do I decompress it once I uploaded it from within SFTP (specifically what commands...). If anyone knows a simpler way to upload entire directories via SFTP, feel free to share.
  #2 (permalink)  
Old 03-10-2009
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,257
Afaik there is no way to recursively copy directories via sftp with the normal command line client.
So you might either do as suggested in that other thread, using for example gzip with the -r switch for recursive operation and gunzip to uncompress it. There are other compression tools like bzip2/bunzip2.
Not all of them have an option for operating recursively on directories so a common way is to tar them 1st, and then compress.

It implies of course that you have a possibility on the recipient side where you upload your data, to uncompress and/or un'tar there.

The most simple way might be a graphical interface like for example Servant Salamander which can use many different protocols including sftp (if this is an option for you). The advantage is that you dont have to worry about de-/compressing and stuff, since it just scans your local directory structure you want to submit and just creates it accordingly on the recipient side.
  #3 (permalink)  
Old 03-10-2009
milhan milhan is offline
Registered User
  
 

Join Date: Oct 2002
Location: /home
Posts: 133
why don't you use Winscp. it has sftp and you don't need to worry about compressing/decompressing anything. Just upload the directory or anything inside it.
  #4 (permalink)  
Old 03-11-2009
greetea greetea is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 2
milhan: Winscp crashes on me.

zaxxon: Servant Salamander is not free.

thanks for all your help guys, I got it solved now. Discovered scp...
  #5 (permalink)  
Old 03-11-2009
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,318
Exactly, I was going to offer scp - as simple as : scp -r folder user@server:path
Sponsored Links
Closed Thread

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 07:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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