Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 990
  • Last Modified:

Exclude .svn folders from tar

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
jkavx
Asked:
jkavx
1 Solution
 
themrrobertCommented:
remove the slash after .svn, you are telling it to exclude any files in the directory but not the directory iteself
0
 
jkavxAuthor Commented:
Great.  Thx.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now