08-25-2008
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.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok here at work I have been charged with finding a way to create a password protect .tar files from the command line. Now i have yet to actully sit down and learn UNIX yet, but that is one of my next todo's. Anyway my questions is I have been surfing in search of a solution and the closest answer... (5 Replies)
Discussion started by: clovell
5 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
There 2 files in the folder /temp/tst/
1.txt
2.txt
When I run the command
find /temp/tst \( -name "*.txt" \) -exec tar cf /temp/123.tar {} \;
it creates the tar file 123.tar with only one file in it and that is 2.txt.But if I use the command
find /temp/tst \( -name "*.txt"... (1 Reply)
Discussion started by: rony_daniel
1 Replies
3. UNIX for Dummies Questions & Answers
Huloo,
whats diff between TAR+zip+FTP and TAR+FTP,can't we simpply FTP a file without Zipping it?
TAR is simply for Archiving ,then why do we need to Zip it?
:( (1 Reply)
Discussion started by: swarup2008
1 Replies
4. Solaris
Hello,
I need help in finding files older than x days and creating a single consolidated tar file combining them. Can anyone please provide me a script?
Thanks,
Dawn (3 Replies)
Discussion started by: Dawn Bosch
3 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
./ora_475244.aud
./ora_671958.aud
./ora_934052.aud
./ora_934050.aud
However, when I issued the below command:
tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies
6. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
7. UNIX for Dummies Questions & Answers
Hi All
I have 2 tar files and inside a Gzip file (actually its folder) that i got from a Unix user to check the code for him and find some problem.
I decompress the Tar file and use 7-ZIP to open the Gzip file and Extract all folders and files.
I found the code problem and change it but now when... (1 Reply)
Discussion started by: giladboker
1 Replies
8. Solaris
How to FTP (get multiple) unix files to windows using visual basic 6.
I am a list of files in my unix location, need to ftp those files to windows machine using Visual basic 6 or VBA macros.
Thanks in Advance (3 Replies)
Discussion started by: sureshmani
3 Replies
9. Shell Programming and Scripting
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies
10. UNIX for Dummies Questions & Answers
Hi,
the folder /home/nandy/test will have two files called
notepad1
nodepad2
when i issued
/home/nandy/test> tar -cvf componse.tar ./notepad1 ./notepad2 and no error
/home/nandy/test> tar -cvf nan.tar . --> this creates nan.tar with the below message
nan.tar same... (1 Reply)
Discussion started by: Nandy
1 Replies
LEARN ABOUT DEBIAN
debian::copyright::stanza::files
Debian::Copyright::Stanza::Files(3pm) User Contributed Perl Documentation Debian::Copyright::Stanza::Files(3pm)
NAME
Debian::Copyright::Stanza::Files - Files stanza of Debian copyright file
VERSION
This document describes Debian::Copyright::Stanza::Files version 0.1 .
SYNOPSIS
my $copy = Debian::Copyright::Stanza::Files->new(\%data);
print $copy; # auto-stringification
DESCRIPTION
Debian::Copyright::Stanza::Files can be used for representation and manipulation of a "Files:" stanza of Debian copyright files in an
object-oriented way. Converts itself to a textual representation in string context.
FIELDS
The supported fields for Files stanzas are listed below.
Note that real copyright fields may contain dashes in their names. These are replaced with underscores.
Files
License
Copyright
X_Comment
CONSTRUCTOR
new( { field => value, ... } )
Creates a new Debian::Copyright::Stanza::Files object and optionally initialises it with the supplied data.
METHODS
is_or_separated($field)
Returns true for the "License" field.
SEE ALSO
Debian::Copyright::Stanza::Files inherits most of its functionality from Debian::Copyright::Stanza
COPYRIGHT & LICENSE
Copyright (C) 2011 Nicholas Bamber nicholas@periapt.co.uk
This module is substantially based upon Debian::Control::Stanza::Source. Copyright (C) 2009 Damyan Ivanov dmn@debian.org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
perl v5.12.4 2011-08-27 Debian::Copyright::Stanza::Files(3pm)