Solved

Exclude .svn folders from tar

Posted on 2011-09-14
2
838 Views
Last Modified: 2012-05-12
I need to tar a tree that has been checked out from SVN, and exclude all .svn folders.  I've tried tar -cvf test.tar * --excludes "*/.svn/*, but this still leaves empty /.svn/ folders.

What needs to be done here?
0
Comment
Question by:jkavx
2 Comments
 
LVL 13

Accepted Solution

by:
themrrobert earned 500 total points
ID: 36538104
remove the slash after .svn, you are telling it to exclude any files in the directory but not the directory iteself
0
 

Author Closing Comment

by:jkavx
ID: 36538271
Great.  Thx.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

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…
Fine Tune your automatic Updates for Ubuntu / Debian
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

914 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

20 Experts available now in Live!

Get 1:1 Help Now