gnu-tar is the implemented by Gnu of the tar command, it is the default tar on many Linux systems, but no on BSD & OSX. It has several extensions not found in other tars. Use this tag if you have a gnu-tar specific question. Otherwise, or if you don't know, use the more generic [tar]
Questions tagged [gnu-tar]
16 questions
2
votes
1 answer
Unable to exclude directories while using tar
I have a folder in Home directory with the following structure:
top-tree
+-- .git
+-- branch1
| +-- branch11
| +-- .idea
| +-- branch111
| +-- branch112
| +-- branch113
| +-- branch114
| +-- branch1141
…

skrowten_hermit
- 751
- 4
- 13
- 34
1
vote
1 answer
tar exclude not working as expected
I am trying to create a .tar file of the filesystem but exclude the /proc directory.
The command I have tried is:
tar -czvf mytar.tgz / --exclude='/proc'
But this does not exclude the directory.
I have also tried it without the single quotes.
# tar…

Proletariat
- 687
0
votes
1 answer
tar exclude certain directories but not in subdirectories
I need to transfer a lot of web directories to another machine. The directory structure looks like this:
/var/www/
site1/
cgi-bin/ ...
logs/ ...
index.html
images/ ...
...
site2/
cgi-bin/
…

ygoe
- 223
- 2
- 13