TurnKey Linux Virtual Appliance Library

How to either DELETE all SVN folders and files or how to Tklbam-Restore without SVN folders and files.

L. Arnold's picture

A while back I found I could use SVN to get upgrade versions of Magento into TKL apps.  That was probably a mistake as there are thousands of files in a Magento install and SVN seems to add three more files and a directory for each file.

Any easy ways to get rid of all this?

Any easy ways to "ignore" it during a TKLBam-restore?  (restores w/ SVN take FOREVER)

This page recomends the Command below..  Is this Good to Go?

http://www.hacktrix.com/how-to-delete-svn-folders-from-your-project-on-windows-linux-and-mac

 

	Delete All .svn Folders From Your Project on Linux and Mac

If you are on Linux or Mac, then open terminal and go to your project directory. Then use this command to remove all .svn directories.

find . -type d -name .svn -print0 | xargs -0 rm -rf
Please don’t run this command as root. In fact, you should not run any command as root :)
L. Arnold's picture

This seems to take.. verbatim in TKL deleting svn folders.

from:  http://www.anyexample.com/linux_bsd/bash/recursively_delete__svn_directories.xml

It is possible to pass these directories directly to rm command, using grave accent quotes (key to left of '1')

 

$ rm -rf `find . -type d -name .svn`

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)