Sponsored Content
Full Discussion: tar question
Top Forums UNIX for Dummies Questions & Answers tar question Post 29971 by janr on Tuesday 15th of October 2002 03:09:39 AM
Old 10-15-2002
Erik,

maybe you can restore the whole TAR, and remove those files you do not like to have.

I think this is the most easiest way
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Question regarding tar restore

I created a relative backup of my home directory using tar into a file named backup.tar. No problem there. I checked it out using the table of contents command to list the contents of the backup.tar file, and there is no problem there either. But, when I tried restoring backup.tar into a... (2 Replies)
Discussion started by: Relykk
2 Replies

2. UNIX for Dummies Questions & Answers

Simple TAR question

Unix is great at giving you power were you need it, but what a pain in the rump when you just want to do such a simple thing like file management. I'm going back to Windows, crashing is frustrating, needing to spend 30 min just to zip a file up is crazy. (3 Replies)
Discussion started by: yankee428
3 Replies

3. UNIX for Dummies Questions & Answers

Question on Tar command

Hi, I have a simple question. How do I get a tar of all the files under specific directory which are created on some specific date? Suppose I am in /home/user123/logs. I need the tar of all the logs which are created on May 07. There are some 30 files of that date. Please help. Thanks. (2 Replies)
Discussion started by: everurs
2 Replies

4. Shell Programming and Scripting

un-tar question

Hi all, My examples.tar has about 20 directories. I don't want to un-tar the entire examples.tar. Is there a way to un-tar just a directory named "java" from examples.tar? Please let me know JAK (2 Replies)
Discussion started by: jakSun8
2 Replies

5. UNIX for Dummies Questions & Answers

tar file question

Hi I did this command to tar the files but I got an error. tar -cvpf filename.tar pathname/ It did tar the file filename.tar but then it gave me this error "Reach end of file before expected". The new tar file is about 2GB. So does that mean my tar file limit is 2GB? Is there a max limit... (4 Replies)
Discussion started by: chaoses
4 Replies

6. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

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

7. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

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

8. Shell Programming and Scripting

tar -C syntax question

I am writing a perl script to tar multiple files (in unix) from a given directory to a given output directory. I do NOT want the file path included in the tar, so I've flagged the -C option. Example: tar -cvf tar/1.tar -C htmp/source/ 1-1-1.xml However, I need to do this for a number of target... (3 Replies)
Discussion started by: michanjohns
3 Replies

9. Shell Programming and Scripting

Tar question

Hi all, newbie here. Could anyone help me how to combine a tar -c and tar -x command such that the source file/folder is archived into a target file in the destination folder (may or may not be in the same server), and extracted directly (through pipe?) in that same destination folder? Thanks... (2 Replies)
Discussion started by: frys_hp
2 Replies

10. Shell Programming and Scripting

Question regarding tar command.

I wish my tar -xf hello.tar command should return successful even if the tar has already been extracted at the same location i.e. exists by the same or a different user. Currently i am getting this error as another user has extracted the same tar at the same location. tar: README - cannot... (6 Replies)
Discussion started by: mohtashims
6 Replies
BF_TAR(1)						    Bogofilter Reference Manual 						 BF_TAR(1)

NAME
bf_tar - shell script to write a tar file of a bogofilter directory to stdout SYNOPSIS
bf_tar [-r] [-R] bogofilter_directory DESCRIPTION
bf_tar bundles a bogofilter working directory in tar format and copies it to standard output (your console, or where you redirect it, see EXAMPLES below). OPTIONS
The -r option causes bf_tar to remove inactive log files after the archive has been written successfully. The default is to leave log files. The -R option causes bf_tar to remove inactive log files before the archive is written. This may reduce chances that the resulting archive is recoverable should it become damaged. The archive may be smaller though. The default is to leave log files. EXIT STATUS
The script exits with status code 0 if everything went well, and nonzero if it encountered trouble. EXAMPLES
o bf_tar ~/.bogofilter > outfile.tar Writes a standard .tar file containing the essential files from ~/.bogofilter to outfile.tar. o bf_tar ~/.bogofilter | gzip -9 -c > outfile.tar.gz Writes a gzipped .tar.gz file containing the essential files from ~/.bogofilter to outfile.tar.gz. o bf_tar `pwd`/mydirectory > outfile.tar Prepend $(pwd)/ or `pwd`/ if you want to specify an absolute path instead of a relative path. NOTES
This script is meant for use with Berkeley DB based bogofilter versions. This script requires a SUSv2 compliant pax utility. This script expects a SUSv2 compliant shell. Solaris systems should have the SUNWxcu4 package installed (when bogofilter is configured) so that /usr/xpg4/bin/sh can be used. AUTHORS
Matthias Andree Bogofilter 03/15/2010 BF_TAR(1)
All times are GMT -4. The time now is 12:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy