Published
- 1 min read
tar exclude directory
The solution for this is noted below
tar exclude directory
Solution
$ tar --exclude='./folder' --exclude='./upload/folder2' -zcvf /backup/filename.tgz .
Try other methods by searching on the site. That is if this doesn’t work