Make tar archive without .git folder or any other version control systems


Warning: Undefined array key "socialize_RedditWidget" in /home/phpacd/websites/shkodenko.com/wp-content/plugins/socialize/frontend/socialize-services.php on line 166

To make tar archive without .git folder or any other version control systems –exclude-vcs option can be used for tar.

Example tar command could be:

$ tar --exclude-vcs -cpjf ~/backup__no_vcs__$(date +'%Y-%m-%d_%H-%M').tar.bz2 ./