Solved

Exclude .svn folders from tar

Posted on 2011-09-14
2
878 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
wifi not working on Raspberry Pi 3? 2 82
Can't ping New Linux Servers 40 90
bash file 10 49
How to use question mark (?) in filename with html 25 73
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.

830 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