Return to Snippet

Revision: 80617
at March 23, 2020 05:36 by chrisaiv


Updated URL
https://www.chrisjmendez.com/2008/07/05/create-a-tar-gz-archive-using-terminal-os-x/

Updated Code
https://www.chrisjmendez.com/2008/07/05/create-a-tar-gz-archive-using-terminal-os-x/

Updated Description
https://www.chrisjmendez.com/2008/07/05/create-a-tar-gz-archive-using-terminal-os-x/

Revision: 7090
at January 9, 2009 17:26 by chrisaiv


Updated Code
tar -pvczf BackUpDirectory.tar.gz /path/to/directory

//Back up a directory but exclude .hidden files
tar --exclude=".*" -pvczf BackUpDirectory.tar.gz /path/to/directory

Revision: 7089
at July 5, 2008 18:45 by chrisaiv


Initial Code
tar -pvczf BackUpDirectory.tar.gz /path/to/directory

Initial URL

                                

Initial Description
This command will allow you to make a tar ball with gzip compression:
-c = Create
-v = Verbosely list files processed
-z = Filter the archive through gzip
-p = Preserve Permissions ( extract all protection information)
-f  = Use archive file or device F

Initial Title
Create a .tar.gz archive using Terminal OS X

Initial Tags
terminal

Initial Language
Bash