Re: [Lug-Nuts] archive with tar help

From: William Kendrick (nbs@sonic.net)
Date: Fri Feb 11 2000 - 15:42:08 PST


>
>
> I'm trying to archive my working directory and the sub folders with tar.
>
> I run the following...
>
> cd /home/httpd/html
> tar cvfM `find . print` > backup.tar
>
> but it gives me errors and then stops.
>
> ideas?

I hate tars that have plain files in them. :) When I open a tar, I want
_one_ thing. A directory.

The best way to do this is:

  cd /home/httpd/
  tar -cf ~/html.tar html

or, if you want tar to gzip it as it goes:

  tar -czf ~/html.tar.gz html

-bill!
**********************************************************
* Sacramento Linux Users Group Mailing List
*
* Unsubscribe: Send a message to majordomo@saclug.org
* With 'unsubscribe lug-nuts' in the body
*
* http://www.saclug.org



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:12 PST