Exclude folders from zip – tar

On December 10, 2009, in CentOS, Fedora, Linux, Tips, Tricks, by admin

TARTape Archive  (application/x-tar)

tar phpsolutions

TAR - phpsolutions

A common archive format used on Unix-like systems. Generally used in conjunction with compressors such as gzip, bzip2, compress or xz to create .tar.gz, .tar.bz2, .tar.Z or tar.xz files.

# tar -cvvf foo.tar foo/ –exclude=”/home/phpsolutions”

# tar -cvzpP –file=/home/backup.tar.gz –exclude={/dev/*,/proc/*,/sys/*,/tmp/*} /

tar work with directory “/” except for /dev, /proc, /sys, /tmp :)

Tagged with:  

49 Responses to Exclude folders from zip – tar

  1. Anonymous says:

    Hi there, just became alert to your blog through Google, and found that it is truly informative. I am going to watch out for brussels. I will appreciate if you continue this in future. Lots of people will be benefited from your writing. Cheers!

  2. Anonymous says:

    Hey very cool website!! Man .. Beautiful .. Amazing .. I will bookmark your site and take the feeds also…I’m happy to find numerous useful info here in the post, we need develop more techniques in this regard, thanks for sharing. . . . . .

  3. Annabelle Windemere says:

    Sorry…I wanted to comment earlier. I am convinced that it is correct. Keep up the good work. I’ll be back soon.

  4. Burton Haynes says:

    Hello! I just would like to give a huge thumbs up for the great info you have here on this post. I will be coming back to your blog for more soon.

  5. Julian Gardiner says:

    Pretty good post. I just stumbled upon your blog as well as wanted to state which I have truly enjoyed browsing your blog posts. Regardless I’m going to be subscribing to your give food to and Do you create again quickly!

  6. Giovanna Alfrey says:

    The subsequent website is exceedingly brilliant. Methods to make one this manner

  7. Faith 'Freelance' Hill says:

    Yes, I like what you said, but only up to a point. Still, it’s all good reading. Good stuff!

  8. 徵信社 says:

    I find myself strongly over it and love learning on this topic,and melted it a bit leaving resin on the bottom of the part!2

  9. sargent seats says:

    Sorry…I meant comment on this earlier. I think that it is fair. Keep up the fantastic work. I’ll be back tomorrow.

  10. Anonymous says:

    Kudos for posting this type of useful weblog. Your site isn’t only informative but additionally very artistic too. There usually are very number of people that can write less than simple articles that creatively. Continue the favorable writing !!

  11. Anonymous says:

    I will be really thankful towards author with this post to create this lovely and informative article live here for us. We actually appreciate ur effort. Sustain the favorable work. . . .

  12. Anonymous says:

    I must say i loved this post. You describe this topic well. When hiring home contractors it truly is key to pick a trusted name in construction. Experienced and efficient staff should shoot for excellence and absorb every detail of your dwelling.

  13. Anonymous says:

    This is very interesting, You are a very skilled blogger. I’ve joined your feed and look forward to seeking more of your magnificent post. Also, I have shared your web site in my social networks!

  14. Anonymous says:

    We are a group of volunteers and opening a new scheme in our community. Your site offered us with valuable information to work on. You have done an impressive job and our whole community will be grateful to you.

  15. Anonymous says:

    Hi there, just became alert to your blog through Google, and found that it’s really informative. I’m gonna watch out for brussels. I will be grateful if you continue this in future. Lots of people will be benefited from your writing. Cheers!

  16. Anonymous says:

    Pretty nice post. I just stumbled upon your blog and wished to say that I have truly enjoyed surfing around your blog posts. In any case I’ll be subscribing to your rss feed and I hope you write again very soon!

  17. Anonymous says:

    Its like you read my mind! You appear to know so much about this, like you wrote the book in it or something. I think that you can do with some pics to drive the message home a little bit, but other than that, this is wonderful blog. A fantastic read. I’ll certainly be back.

  18. Anonymous says:

    I think this is one of the most vital info for me. And i am glad reading your article. But should remark on few general things, The site style is perfect, the articles is really great : D. Good job, cheers

  19. Marilou Pirrotta says:

    You can definitely see your enthusiasm in the work you write. The world hopes for more passionate writers like you who aren?¯t afraid to say how they believe. Always go after your heart.

  20. Anonymous says:

    Hello! Just want you to know that I really found this website really helpful to me. I will come back to this blog more often to read more. Thanks.

  21. Anonymous says:

    Web site, you are very interesting to read. Very interesting and engaging.

  22. Anonymous says:

    Thank you for sharing the info. I found the info very helpful.

  23. Anonymous says:

    I’ve been searching for some good info about this pretty much a few hours. You assisted me a lot indeed and looking over this article

  24. Anonymous says:

    I?d like to thank you for the efforts you have made in writing this specific article. This continues to be an motivation for me. I?ve forwarded this to one of my pals.

  25. Anonymous says:

    I loved as much as you will receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get got an nervousness over that you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield this hike.

  26. Anonymous says:

    An interesting discussion is worth comment. I think that you should write more on this topic, it might not be a taboo subject but generally people are not enough to speak on such topics. To the next. Cheers

  27. Anonymous says:

    Just want to say your article is as astonishing. The clearness in your post is just spectacular and i can assume you are an expert on this subject. Fine with your permission allow me to grab your feed to keep up to date with forthcoming post. Thanks a million and please keep up the enjoyable work.

  28. Raymon says:

    Wow… thx ;-]

  29. Humberto says:

    Wow… thx ;-]

  30. Anonymous says:

    Thank you for a great post. I will learn many new stuff right here! Good luck for the next!

  31. Anonymous says:

    Great detailed information, I ll be visiting you more frequently, here is very interesting information.

  32. Anonymous says:

    Great job here. I really enjoyed what you had to say.

  33. Playtex Bras says:

    The blog given to us has some exciting features. It realy increase my knowledge about the topic.

  34. Anonymous says:

    Thankful i recently uncovered this excellent website, will be sure to save it so i can browse frequently.

  35. Charlsie Proffit says:

    I’m very excited about your next post. Thanks again for creating such high quality content.

  36. Anonymous says:

    This is very interesting, You’re a very skilled blogger. I have joined your feed and look forward to seeking more of your wonderful post. Also, I have shared your website in my social networks!

  37. Jimmy Austen says:

    Another interesting post.

  38. Anonymous says:

    Such a nice post.waiting for more.

  39. Anonymous says:

    I can see that you are an expert at your field! I am starting a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.

  40. Anonymous says:

    My spouse and I stumbled over here different website and thought I should check things out.

  41. Anonymous says:

    Keep up the excellent piece of work, I read few content on this web site and I believe that your blog is really interesting and has got sets of excellent information.

  42. Anonymous says:

    Great Post. I add this Blog to my bookmarks.

  43. Anonymous says:

    I really like the blog. Thanks for the good read.

  44. Anonymous says:

    Very interesting info !Perfect just what I was looking for!

  45. Wilfredo Schmauder says:

    I have a hosted WordPress blog. For some reason, my blog posts are being sent out to followers of another blog. The other blog owners uses Blogger. We can figure out why or how this is happening?.

  46. gzsz says:

    Nearly all of what you articulate is astonishingly accurate and that makes me ponder the reason why I hadn’t looked at this in this light before. This piece truly did turn the light on for me as far as this particular subject matter goes. However there is just one position I am not too comfy with so while I try to reconcile that with the actual main theme of your issue, permit me see just what all the rest of your visitors have to say.Well done.

  47. ASHOLE LU says:

    An fascinating communication is designer comment. I reckon that you should write statesman on this theme, it power not be a taboo bailiwick but generally people are not sufficiency to mouth on much topics. To the succeeding. Cheers like your Exclude folders from zip – tar | PHP Solutions.

Leave a Reply