Posted By

chrisaiv on 07/05/08


Tagged

archive tar terminal gz


Versions (?)

Who likes this?

12 people have marked this snippet as a favorite

taboularasa
purefusion
rob-ot
useallfive
danshields
jonathanpglick
Wilco
benrudolph
divtagged
jeremydouglass
vejnoe
ddubyah17


Create a .tar.gz archive using Terminal OS X


 / Published in: Bash
 

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

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

Report this snippet  

You need to login to post a comment.