Sponsored Content
Operating Systems AIX Exclude Directories in my tar command Post 302864465 by RudiC on Wednesday 16th of October 2013 02:35:58 PM
Old 10-16-2013
The tape archive will be in the file given to the f option. You need to gzip that one, not stdout which will contain a log of tar's actions but no meaningful data. By adding the z option, tar will gzip its output immediately.

And, remove the ":" from your exclude file.
This User Gave Thanks to RudiC For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find command to exclude directories

Howdy I have this directory structure ... eep eepaptest eepfatest eepgltest eep.old eeppoptest ehf ehfaptest ehfgltest ehp ehpgltest I want to find files in these directories, but I want to exclude eep, ehf & ehp. Cany anyone help with the correct command ?? (1 Reply)
Discussion started by: SmurfGGM
1 Replies

2. UNIX for Dummies Questions & Answers

How to Exclude multiple directories from find command?

Hi, Can some one help me how to exclude multiple directories using find command.. I have the directory structure below. /a/a1/b1 /a/c1/c2 /a/d1/d2/d3 I want to exlcude a1,c2and d3 from the above using find,can some one suggest pls.. thanks in advance... Use code tags... (1 Reply)
Discussion started by: jagadish_gaddam
1 Replies

3. Shell Programming and Scripting

Help - Find command to exclude sub-directories

Hi Forum. I'm trying to write a script that finds and deletes files that are older than 300 days. The script will read a table that contains the following 3 columns: 1st col: “Y” means sub-directory scan; "N" means no subdirectory scan 2nd col: sub-directory location 3rd col: File prefix... (7 Replies)
Discussion started by: pchang
7 Replies

4. Shell Programming and Scripting

Perl exclude directories in command line

Hi, I use find command to list all the files in a directory and its sub-directories, but the problem is to exclude certain directories during search. Can i give the directory names in command line to skip them and search rest of the directories? For example i have directories: test ../test1... (1 Reply)
Discussion started by: nmattam
1 Replies

5. UNIX for Dummies Questions & Answers

Find command to exclude directories and setup alias or script?

Hi, Firstly - sorry for the duplicate my other post looked like i was posting a how to for people. But i am wanting some help :P I want to search from / to find files and exclude my mounted ntfs drives. I have found this thread (Which I can't post the URL to until i have 5 posts) it's... (4 Replies)
Discussion started by: mightymouse2045
4 Replies

6. UNIX for Dummies Questions & Answers

Executing a tar command with the --exclude option in a Debian shell script.

Hi All, I am trying to execute the following tar command with two --exclude options to suppress extract of the two directories specified. Do I need to single quote the directory paths ?? Many thanks for your help. The relevant code excerpt from the script is: cd /var/www/${SITE} ... (7 Replies)
Discussion started by: daveu7
7 Replies

7. Shell Programming and Scripting

working with tar exclude command

i have issue with tar, let me explain when i run below command it works perfectly as usual. tar -cvf /tmp/temp.tar --exclude="exclusion expression" dir my requirement is --exclude="exclusion expression" will come from another variable. so when i execute below command: tar -cvf... (2 Replies)
Discussion started by: ajayyadavmca
2 Replies

8. Shell Programming and Scripting

Exclude directories in FIND command

Can you please help tweak the below command to exclude all directories with the name "logs" and "tmp" find . -type f \( ! -name "*.tar*" ! -name "*.bkp*" \) -exec /usr/xpg4/bin/grep -i "user_1" /dev/null {} + >result.out bash-3.2$ uname -a SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v... (9 Replies)
Discussion started by: mohtashims
9 Replies

9. Shell Programming and Scripting

Need Tar Ball command to exclude directories

Hi, uname -a SunOS mymac 5.11 11.2 sun4u sparc SUNW,SPARC-Enterprise I need to tar a folder /tmp/moht but do not want these three folders to be included in the tar file -> savejpg, bmpsave and imgsave I tried --exclude, -path, -not options but it says bad option Can you help me with... (3 Replies)
Discussion started by: mohtashims
3 Replies
mt-dds(1)						      General Commands Manual							 mt-dds(1)

NAME
mt-dds - tool to control a dds device. SYNOPSIS
mt-dds comp-on|comp-off|comp-query|comp-log mt-dds < tell|label > [ -b # ] DESCRIPTION
mt-dds controls the compression mode of dds tape devices (DAT). mt-dds may also report the current tape position in absolute records (relative to begin of tape) in a format that may be used later by dds2tar(1) to access tar archives that are not the first file on tape. The default device is /dev/nst0, which may be overridden with the environment variable TAPE, which in turn may be overridden with the -f device option. The device must be a character special file. OPTIONS
DDS tape device control options comp-on Enable the hardware compression mode if supported by the device. comp-off Disable the compression mode, switch to normal mode. comp-query Print to stderr if compression mode currently is disabled or enabled. A 0 means compression is disabled, a 1 means compression in enabled. comp-log Print to stdout four lines of information about transferred kilobytes before and after hardware compression from and to the device since initialization. dds2tar service functions tell Print three lines with the current tape position, a block size value (20 by default, may be overridden with -b option) and a block length value (blocksize*512) to stdout. If this output is redirected to a location file locfile, this file may be used by dds2tar(1) to access archives on tape. label If the current tape position is the beginning of an archive and the archive is labeled, mt-dds writes the label to stdout and moves the tape back to the current position (or back over the filemark). ts If the current tape position is the beginning of an archive and the archive is labeled, mt-dds writes the timestamp in octal format to stdout and moves the tape back to the current position (or back over the filemark). If you are using only one computer, the timestamp can be used as a unique archive identifier. -b # Specify the block size # value that is used as a default for the written value with the mt-dds tell command (see above). Also the internal buffer size is specified with this option which is used to read one block in order to get the block size of the current tape block. So specify the block size of the archive or a larger number. other options -f device Device of the tape archive (default is /dev/nst0). Must be a character special file connected to a dds tape device. -V,--version Print the version number of mt-dds to stderr and exit immediately. --help print some screens of online help with examples through a pager and exit immediately. EXAMPLES
Example 1: checking the compression mode of the default tape device mt-dds comp-query Example 2: Write the location information as dds2tar command line options to stdout. mt-dds ENVIRONMENT
The environment variable TAPE overrides the default tape device /dev/nst0. PAGER The environment variable PAGER overrides the builtin pager command ("/bin/more") to display the output of the --help option. SEE ALSO
dds2tar(1), dds2index(1), mt(1), tar(1) HISTORY
This program was created to use it in conjunction with dds2tar. AUTHOR
J"org Weule (weule@cs.uni-duesseldorf.de), Phone +49 211 751409. This software is available at ftp.uni-duesseldorf.de:/pub/unix/apollo 2.4 mt-dds(1)
All times are GMT -4. The time now is 01:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy