Creating a TAR file and excluding some of the dirs
I have been using Git, Node, and Bower as development tools, but they make your project A LOT bigger. So when I back up my project, I don't want to include some of the directories. I used to delete the 'node_modules' directory and the 'vender' directory (created by bower install) every time I wanted to make a backup of my project. But I just realized that you can exclude files from your archive like this:
tar -vczf my-project.tar public_html/ --exclude 'node_modules' --exclude '.git' --exclude 'vendor' --exclude '.sass-cache'
Add a Comment...
CommentsHaving look at this I thought it was extremely enlightening. I appreciate you spending some time and energy to get this informative article together. One time i again find myself spending plenty of time both reading and leaving comments. But so what on earth, it had been still worth the cost! - 9/29/2016
Unquestionably feel that you stated. Your best reason appeared to be around the internet the easiest thing to be familiar with. I believe that to you personally, I definitely get irked while people consider worries that they can just don't learn about. You managed to hit the nail upon the top and also defined out everything without needing side-effects , people could go on a signal. Will likely come back to obtain more. Thanks - 9/24/2016
I was previously recommended this blog via my cousin. I am not sure whether or not this post is written by way of him as nobody else recognize such special approximately my problem. You are incredible! Thanks a lot! - 9/06/2016
http://dllstore.net/UserProfile/tabid/57/userId/22903/Default.aspx http://jfresnais.free.fr/modules.php?name=Your_Account&op=userinfo&username=LesliAtwel http://www.trioitservices.in/?q=node/386 http://wololo.net/2017/03/14/opensyobon-vita-gekihen-contest/ http://irev4.com/groups/real-madrid-troje-born-dannfurne/ http://triggerspace.net/groups/divise-calcio-personalizzate-angelina/ http://radiolegendary.com/2016/10/ritual-trauma-in-a-quest-for-a-new-world-order/ http://ideasfrescas.com.mx/busine - 5/25/2017
I have read so many articles on the topic of the blogger lovers however this article is genuinely a good post, keep it up. Maglia Juve 2017 - 4/27/2017
Magnificent goods from you, man. I have consider your stuff previous to and you're simply too fantastic. I actually like what you have obtained right here, really like what you're saying and the way during which you say it. You are making it entertaining and you continue to care for to stay it sensible. I can't wait to learn much more from you. That is really a tremendous site. fotbollstrÃ¶jor - 4/26/2017