TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:18702] SQOTD (simple Q. of the day)
Tim--
I would use:
tar cvz /path/to/user/dir/* > /path/to/desired/tar/location/file.tar.gz
c = create
v = verbose mode (for debug or just to watch
z = gzip compress it
.tar.gz or .tgz are both acceptable extentions, just depends on your
school of thought (no pun intended)
The key to this whole thing is the ">" redirect that I think you were
missing...definately critical or garbage will appear.
Make sure the /* and the .tar.gz are not in the same dir for this
operation or it will recurse and fill the disk.
Regards,
Mark
On Thu, 8 Jun 2000, Timothy Wilson wrote:
> Hey everyone,
>
> I've got a couple kids would did some C++ programming on my Linux server
> this spring. Now they'd like to take all of their files home with them. I
> want to tar and gzip them, but I can't get the tar command options right.
> ('man tar' didn't help any) My last effort resulting in many pages of
> garbage popping out of laser
> printer.
>
> So, what would I type to archive a users's entire home directory into a
> tar.gz?
>
> -Tim
>
> --
> Tim Wilson | Visit Sibley online: | Check out:
> Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
> W. St. Paul, MN | | http://slashdot.org/
> wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@mn-linux.org
> For additional commands, e-mail: tclug-list-help@mn-linux.org
>
--
________________________________________________________
ReadyNET Go!, Inc. - Building your Business on the net
________________________________________________________
Mark J. Kroska
MIS Director
320.656.0765 Voice
888.447.3239 Toll Free
320.203.7052 Fax
http://www.readynetgo.com
mailto:mkroska@readynetgo.com
________________________________________________________