summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--03-tar-exclude-from.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/03-tar-exclude-from.txt b/03-tar-exclude-from.txt
new file mode 100644
index 0000000..f63ae66
--- /dev/null
+++ b/03-tar-exclude-from.txt
@@ -0,0 +1,12 @@
+Examples of the file passed in --exclude-from option to tar:
+
+> ./temp-files # exclude top-level directory entirely
+> ./temp-files/ # BAD: does nothing
+> /temp-files # BAD: does nothing
+> ./temp-files/* # exclude directory contents; include directory
+> temp-files # exclude anything named "temp-files"
+> generated-* # exclude anything beginning with "generated-"
+> *.iso # exclude ISO files
+> proxy/local/cache # exclude "cache" in dir "local" in "proxy"
+
+[http://wiki.zmanda.com/man/amgtar.8.html#idp57458272]