Solved

excluding files and directories using tar  command

Posted on 2006-11-01
2
414 Views
Last Modified: 2013-12-27
How do I exclude files and directories using tar  command
0
Comment
Question by:rojy_20
2 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 250 total points
ID: 17854608
You can use -X option to list_of_files_exclude  (put the filename dirname you want to exclude
in that text file)

eg:
tar -cvfX mybackup.tar /list_of_files_exclude *

man tar
to learn more details
0
 

Author Comment

by:rojy_20
ID: 17864338
Thanks
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question