15
2010
tar (tape archiver)
tar (tape archiver)
Type tar then -option(s)
Options list:
-c — create.
-v — verbose, give more output, show what files are being worked with (extracted or added).
-f — file (create or extract from file) – should always be the last option otherwise the command will not work.
-z — put the file though gzip or use gunzip on the file first.
-x — extract the files from the tarball.
-p — preserves dates, permissions of the original files.
-j — send archive through bzip2.
–exclude=pattern — this will stop certain files from being archived (using a standard wild-card pattern) or a single file name.
tar examples
tar -cvpf name_of_file.tar files_to_be_backed_up
This would create a tape archive (no compressing).
tar -zxvpf my_tar_file.tar.gz
This would extract files (verbosely) from a gzipped tape archive.
Leave a comment
Kategorije
- Ostalo (161)
- Računalništvo (266)
- Centos (34)
- CSS (2)
- FreeBSD (37)
- jQuery (1)
- MySQL (8)
- Na spletu dogaja … (124)
- Netbeans (4)
- PHP (20)
- Symbian (3)
- Ubuntu (32)
- Windows (5)
- Zend Framework (6)
- Zend Studio (1)
Blogroll
Arhiv
- February 2011 (5)
- December 2010 (4)
- November 2010 (2)
- October 2010 (5)
- September 2010 (6)
- August 2010 (5)
- July 2010 (10)
- June 2010 (9)
- May 2010 (10)
- April 2010 (8)
- March 2010 (12)
- February 2010 (19)
- January 2010 (20)
- December 2009 (10)
- November 2009 (1)
- October 2009 (3)
- September 2009 (2)
- August 2009 (9)
- June 2009 (11)
- May 2009 (5)
- April 2009 (6)
- March 2009 (9)
- February 2009 (15)
- January 2009 (10)
- December 2008 (17)
- November 2008 (20)
- October 2008 (16)
- September 2008 (48)
- August 2008 (56)
- July 2008 (35)
- June 2008 (35)
An article by




