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 > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Uploading a flat file into the database. Balkrishna Shell Programming and Scripting 1 07-13-2007 02:26 AM
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
Uploading and Downloading during a telnet session WhitneyMay UNIX for Dummies Questions & Answers 1 06-27-2001 08:05 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-12-2007
mab623 mab623 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 4
uploading directories via SFTP

Hello All,

Is there a way to upload whole directories to a machine using sftp (scp is not an option)? I have to use sftp because the machine that I am connecting to only has SFTP abilities (uploading from a linux box to a windows box).

Currently I am automating a copy however right now I am just copying all the files in a directory. Copying the entire directory would eliminate me having to parse the data files into appropriate directories on the windows side. Right now I use the put command to execute the file upload and I dont know if there is a recursive flag I could use to get the job done.

Thanks in advance for the help.
  #2 (permalink)  
Old 10-12-2007
mab623 mab623 is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 4
So I guess my sort question is, does anyone know a way to implement recursion when utilizing sftp to upload files to a remote machine?
  #3 (permalink)  
Old 10-12-2007
tomas's Avatar
tomas tomas is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 35
i usually compress files before I s/ftp them to save time during transfer then uncompress on the other end. I have done that from a UNIX server to a Win2k server before and it works fine. You just need to use a compression format that Windows can uncompress.

Other option would be to create a batch file before running the sftp command and give it that. maybe output ls -R to a file then format the file and use it.
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:45 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