View Full Version : tar
MaTriX
23rd August 2001, 14:42
Having a hard time creating a .tar.gz file... I guess it's so simple that's why I can't find anything about it :confused:
I have my /ut-server directory that I want to archive into ut-server-backup.tar.gz
Can you help me dnar :D
Jodie
23rd August 2001, 14:57
can only Dnar play?
A couple ways - cd into the directory.
# tar -cvf /directory_where_you_want_to_store_it/filename.tar * (back up everything there into a tar)
# gzip [-1 through -9 where -1 is fastest, least compression and -9 is best/slowest. Default is -6] /directory_where_you_want_to_stored_it/filename.tar
That's probably the least obfuscated way to do it...
As an example - I just tarballed and gzipd my entire genome directory
# cd ~genomeusr/genome
# tar -cvf /tmp/genomic-stuff.tar *
# gzip -9 /tmp/genomic-stuff.tar
# ls /tmp
genomic-stuff.tar.gz
.
.
.
hope that helps! But you *could* wait for Dnar... :p :D
MaTriX
23rd August 2001, 16:30
Originally posted by Jodie
can only Dnar play?
hope that helps! But you *could* wait for Dnar... :p :D
Hehehe... Just as good... Thanks...
I used my slowest machine to make as a Linux box, now I know what a gzip -9 is :D Must be worth it since I'll have to upload the file and the uplink on my cable is only about 12K/sec.
J-C
Jodie
23rd August 2001, 16:31
Yup, could be painful! Good luck!
MaTriX
23rd August 2001, 16:47
Originally posted by Jodie
Yup, could be painful! Good luck!
But I'm sure it was worth it, the output file is not too big...
It's funny the impression that we have about Linux...
We keep hearing that for running Linux all we need is a slow obsolete otherwise useless computer that will be turned to a fantastic box... I took my good old P2-300 (OC @ 450) to build the Linux machine, thinking it would be enough... WRONG...
I want a REAL computer for my Linux machine now... (:D and one more to crunch Genome :D)
phil
23rd August 2001, 16:53
Originally posted by MaTriX
But I'm sure it was worth it, the output file is not too big...
It's funny the impression that we have about Linux...
We keep hearing that for running Linux all we need is a slow obsolete otherwise useless computer that will be turned to a fantastic box... I took my good old P2-300 (OC @ 450) to build the Linux machine, thinking it would be enough... WRONG...
I want a REAL computer for my Linux machine now... (:D and one more to crunch Genome :D)
Hehe, that's the spirit :D Buy, buy, buy!!
Jodie
23rd August 2001, 17:10
Well, by the same token - try doing that with Win2k... I promise it will be more painful...
MechCD
23rd August 2001, 18:17
Linux can m,ake use of the cpu better, it might not be faster
You COULD run a server off that machine better than any Win2k or Win98 on the same box
The x windows and other running things slows it down.
dnar
24th August 2001, 04:59
Originally posted by MaTriX
Having a hard time creating a .tar.gz file... I guess it's so simple that's why I can't find anything about it :confused:
I have my /ut-server directory that I want to archive into ut-server-backup.tar.gz
Can you help me dnar :D
You can create a tarball with one command:
tar -cpzf ut-server-backup.tar.gz /ut-server
This will create ut-server-backup.tar.gz in the current directory.
Jodie
24th August 2001, 05:54
yup, dnar - but the "z" isn't 'pure'... Doesn't work across all platforms... I try to quote something I know will work from the vaxxen to the linux machine to the Sperry...
dnar
24th August 2001, 06:02
Originally posted by Jodie
yup, dnar - but the "z" isn't 'pure'... Doesn't work across all platforms... I try to quote something I know will work from the vaxxen to the linux machine to the Sperry...
Maybe, but I am sure MaTriX will have no problems. I dont see why "z" would be troublesome, as it filters the tar image through gzip....
Besides that, not everyone needs to extract tarballs on their vaxxen.
Jodie
24th August 2001, 06:15
Very true, but (like yourself, I'm sure) I support friends who aren't lucky enough to have a machine younger than I am... ;) :D
MaTriX
24th August 2001, 10:13
Originally posted by MechCD
Linux can m,ake use of the cpu better, it might not be faster
You COULD run a server off that machine better than any Win2k or Win98 on the same box
The x windows and other running things slows it down.
But when it get to CPU intensive stuff, there's nothing like a big CPU :D
I think I'll keep the P2 as a Linux box, but as a test machine... Don't try, I won't change my mind... I want a new AMD :D
Does Linux make use of just any amount of RAM available, while it can run on nothing, I was looking at RAM prices yesterday and 2*512MB was quite attractive for that new machine... Is there a ceiling (like on Windoze 98) or will it efficiently use anything ?
MaTriX
24th August 2001, 10:19
Originally posted by dnar
You can create a tarball with one command:
tar -cpzf ut-server-backup.tar.gz /ut-server
This will create ut-server-backup.tar.gz in the current directory.
Cool :D
So now I know 2 ways... What will be the compression level when using the "z", will it use the default (6).
I may prefer to use 2 commands to push it to the max... When you make big files that are to be uploaded at 12K/sec on cable modem, better compress as much as you can, even if it take long on CPU, it's nothing compared to uploading forever :D
Jodie
24th August 2001, 13:26
Originally posted by MaTriX
Cool :D
So now I know 2 ways... What will be the compression level when using the "z", will it use the default (6).
<clip!!!>
Yup, it will use comp-level 6..
Jodie
24th August 2001, 13:27
Originally posted by Linux
Greetings. I hope my input is welcome here, not treading any toes???
Linux will use most available RAM for buffers and cache, always keeping just enough free memory available for new tasks etc. Bottom line, the more the better. When running a memory intensive GUI such as XFree86 with either Gnome or KDE desktops, 128Mb is barely sufficient, 256Mb is great and 512Mb is more than adequate. My suggestion, purely due to recent RAM prices, is install 512Mb. This is more than adequate for the majoirity of Workstation related uses. No harm installing 1Gb of RAM by the way! You may experience problems with your system not recognising the full complement of RAM, if this is the case, the statement "append=xxxx" can be added to your /etc/lilo.conf to remedy this common problem. I hope this helps.
Yup! I generally run between 1.5 and 2Gig in developers machines... Those of us that multitask to hades and back kinda like a lot of ram. If *nothing* ever gets paged out to the disk, I'm a happy camper.
vBulletin® v3.7.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.