Solved

Exclude .svn folders from tar

Posted on 2011-09-14
2
815 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
Comment Utility
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
Comment Utility
Great.  Thx.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

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‚Ķ
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

763 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

6 Experts available now in Live!

Get 1:1 Help Now