The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to get multiple files using sftp from a windows server ramky79 SUN Solaris 3 12-10-2008 08:47 PM
create folder in windows from unix while FTP Metalero de Oz UNIX for Dummies Questions & Answers 0 05-14-2008 02:22 PM
Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! haggo Filesystems, Disks and Memory 2 08-23-2006 12:39 PM
How To create Flat Files using Unix Shell Script? Aparna_k82 Shell Programming and Scripting 4 02-10-2005 05:49 AM
converting files from unix to windows jefft1976 UNIX for Dummies Questions & Answers 2 12-11-2001 06:29 PM

Closed Thread
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 08-25-2008
marconi marconi is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 41
How to create a Tar of multiple Files in Unix and FTP the tar to Windows.

Hi,

On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files.

a) /usr/users/oracle/bin
b) /usr/users/oracle
c) /home/oracle/local/csource
d) /home/oracle/local/dat


Query 1) I need to create a Tar File with all the 70 files (which are currently
scattered in the above 4 directories), as mentioned above. Also,
after creating the tar file, I need to ftp this tar file from the Remote
Unix Server to my Windows Desktop.
I tried using 'tar -cvf <filename>' but I could not succeed.

Query 2) Also, if you could please let me know, how I could tar all the files
which are in all the above 4 directories and not specific scattered
files(which I actually want).

Request you to please let me know, how I can do all the above.

Thanks a lot in advance.

With Best Regards,
Marconi.
  #2 (permalink)  
Old 08-25-2008
shamrock shamrock is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2007
Location: USA
Posts: 753

Code:
tar cvf output_filename.tar /path/to/dir1 /path/to/dir2 /path/to/dir3 /path/to/dir4

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 01:18 PM.


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