Skip to content

Tar directory and exclude sub-directory

19 October 20111 comment Linux

Mostly backup command in linux use tar command and if you want to backup directory and not need several sub-directory in root directory, you can use this

tar -cvzfp ./dirctoryname-backup.tar.gz --exclude=/folderA/foldera

About the Author

This graet post was written by Teerapat (Ball), with a passion of Web design and Linux command line. Having a deep interest in them has driven me to learn and share this post to you.

Spread The Love, Share Our Article

  • Delicious
  • Digg
  • Newsvine
  • RSS
  • StumbleUpon
  • Technorati
  • Twitter

Related Posts

Comments

  1. Hugh March 29, 2012

    Amazing!!!

    [Reply]

Trackbacks

There are no trackbacks on this entry.

Add a Comment

Required

Required

Optional