Comments on: Create a tar file of an entire directory and its sub-directories http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/ It's Just Links Wed, 14 Sep 2011 13:47:04 +0000 http://wordpress.org/?v=2.9.1 hourly 1 By: anon http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/comment-page-1/#comment-391895 anon Fri, 12 Aug 2011 21:35:54 +0000 http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/#comment-391895 <a href="#comment-387393" rel="nofollow">@anon </a> use it as a learning opportunity...it craps out because -f expects a file and the next argument you put was z tar -cvzf mytarfile.tgz mydir/ would work @anon use it as a learning opportunity…it craps out because -f expects a file and the next argument you put was z
tar -cvzf mytarfile.tgz mydir/ would work

]]>
By: anon http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/comment-page-1/#comment-387393 anon Wed, 27 Jul 2011 09:38:35 +0000 http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/#comment-387393 I freaking HATE it when people post "solutions" that don't freakin' work. Take the extra one minute to test your little one-liner before publishing it to the world. I freaking HATE it when people post “solutions” that don’t freakin’ work. Take the extra one minute to test your little one-liner before publishing it to the world.

]]>
By: Kuki Szabolcs http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/comment-page-1/#comment-155264 Kuki Szabolcs Tue, 17 Mar 2009 13:46:07 +0000 http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/#comment-155264 using tar -cvfz mytarfile.tgz mydir/ returns tar: mytarfile.tgz: Cannot stat: No such file or directory tar: Error exit delayed from previous errors so use it without dash in the beginning of the command as in: tar cvfz mytarfile.tgz mydir/ and it works beautifully. using

tar -cvfz mytarfile.tgz mydir/

returns
tar: mytarfile.tgz: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

so use it without dash in the beginning of the command as in:

tar cvfz mytarfile.tgz mydir/

and it works beautifully.

]]>
By: rick http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/comment-page-1/#comment-136654 rick Mon, 22 Dec 2008 18:22:42 +0000 http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/#comment-136654 I thank you so muhc for putting this code up. I can never remember it and always load this page when I need to make a backup. Do you have any good ways to just get one file out of the tar file? I thank you so muhc for putting this code up. I can never remember it and always load this page when I need to make a backup.

Do you have any good ways to just get one file out of the tar file?

]]>
By: George http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/comment-page-1/#comment-82139 George Mon, 19 May 2008 15:45:30 +0000 http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/#comment-82139 The problem with the zip format is that it does not store file permissions. The problem with the zip format is that it does not store file permissions.

]]>
By: Richard Corsale http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/comment-page-1/#comment-25782 Richard Corsale Wed, 08 Aug 2007 19:07:13 +0000 http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/#comment-25782 Also ... for a more universally compatible file try # zip -rv9 myzipfile.zip /mydir -9 is for maximum compression -v is for verbose output -r is recursive directories Also … for a more universally compatible file try
# zip -rv9 myzipfile.zip /mydir

-9 is for maximum compression
-v is for verbose output
-r is recursive directories

]]>
By: John http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/comment-page-1/#comment-23754 John Sun, 15 Jul 2007 17:32:54 +0000 http://www.tonyspencer.com/2005/11/02/create-a-tar-file-of-an-entire-directory-and-its-sub-directories/#comment-23754 tar -cvfz mytarfile.tgz mydir/ will also compress the directory (gzip) tar -cvfz mytarfile.tgz mydir/ will also compress the directory (gzip)

]]>