Solved

excluding files and directories using tar  command

Posted on 2006-11-01
2
413 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AIX print queues constantly going down 11 489
removing nim resources 5 48
AIX    Volume group Auto ON/OFF question 2 89
Linux performance issues with 100% swap usage, etc 15 90
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now