jaya
jaya

Reputation: 11

how do i tar a directory of files and folder without including one folder

how do i tar a directory of files and folder without including one folder

Upvotes: 1

Views: 259

Answers (1)

andrewmu
andrewmu

Reputation: 14534

In a UNIX shell, you would use:

tar --exclude {dir-name} {dir-to-tar} > {tar-file}

where {dir-name} is the directory (or file) to exclude.

Upvotes: 2

Related Questions