Tar

From DevOps Notebook
Revision as of 08:19, 17 April 2020 by MilosZ (talk | contribs) (Created page with "=== Exclude file or folder from tar archive === <pre> $ tar --exclude='./uploads' --exclude='./uploads/folder2' -zcvf /backup/filename.tgz . </pre>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Exclude file or folder from tar archive

$ tar --exclude='./uploads' --exclude='./uploads/folder2' -zcvf /backup/filename.tgz .