• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

PuTTy [Need Help]

need help again...

this time about TAR-ing some folders
the problems is about the same...
I want to tar a folder that have ( ) + & ! character but again... it syntax error

how do I tar it?
 
actually scratch that ..... do this

say you have /home/joe/stupid($£name/

cd /home/joe

tar -cf archivename.tar stupid*

it will guess the rest, and pack anything that begins with stupid into the archive.....
 
Or if you want to create a tar of 10 folders...

Just:
tar cvf everything.tar *

but if the folder has spaces or something:
Kevin's Folder as an example:

tar cvf kevin.tar "Kevin's Folder"
 
thx it works
but still I'm tired tar-ing them 1 by 1

so I put them in 1 folder and tar the folder

the only thing that worried me is if the compression is corrupted

is it possible tar become corrupted? (the folder contain 2-3GB Files)
 
Blebekblebek said:
thx it works
but still I'm tired tar-ing them 1 by 1

so I put them in 1 folder and tar the folder

the only thing that worried me is if the compression is corrupted

is it possible tar become corrupted? (the folder contain 2-3GB Files)

only if the files are corrupt inside...there is no reason for it to be corrupted if the data inside is undamaged.
 
need help again...
how to split tar to few segment?

I have files that bigger than 1GB, I want to tar each files into 200MB/tar
like winrar, *.part1.rar (200MB), part2.rar(200MB) and so on...
 
Wow, I can't believe it took so many posts before people told you how to use wget... :)

You want to use the split program. If you have a big tar file big.tar, try this:

split -b 200m big.tar big.

That should create 200 mb files named big.aa, big.ab, etc.

Use cat to join them back together when you need to uncompress them (e.g., cat big.* | tar xf - )
 
I think you'll need to piece it back together first, I don't know of any Windows apps that will automatically go looking for the pieces like that.

For Windows, in a command prompt window you can do

COPY big.aa+big.ab+big.ac+big.ad big.tar

to get the one big file back (just put all the filenames in there). If you download some unix tools for windows (I couldn't deal with Windows without them) you can just do the same decompression command I mentioned before.
 
done that
but the File.tar size is 335bytes only....
untitled1qm4.gif


did I do something wrong?
argh >_<
 
Windows won't know what to do with tar headers, and so there's pretty much no chance of it being able to re-render files split with *nix, not tar archives anyway, I'd say download cygwin that way you got all you need in the future on your pc ....
 
Blebekblebek said:
done that
but the File.tar size is 335bytes only....

did I do something wrong?
argh >_<

That's really weird. I just tried the same thing with the exact same filenames, and it worked for me:

Code:
E:\zxc>copy file.tar.aa+file.tar.ab File.tar
file.tar.aa
file.tar.ab
        1 file(s) copied.

E:\zxc>dir
 Volume in drive E has no label.
 Volume Serial Number is 80B0-CC58

 Directory of E:\zxc

09/12/2006  10:23 AM    <DIR>          .
09/12/2006  10:23 AM    <DIR>          ..
09/12/2006  10:23 AM                77 File.tar
09/12/2006  10:21 AM                22 file.tar.aa
09/12/2006  10:21 AM                54 file.tar.ab
               3 File(s)            153 bytes
               2 Dir(s)     346,542,080 bytes free


KRAK_JOE said:
Windows won't know what to do with tar headers, and so there's pretty much no chance of it being able to re-render files split with *nix, not tar archives anyway

That doesn't make any sense. Windows doesn't care what's in the files, it just needs to paste them back together so a untarring program can extract it. But for some reason his copy of Windows refuses to paste those files together.

Oh! Found an article that I think explains it, Windows seems to assume you're dealing with text files when you combine files with copy, for some reason that makes absolutely no sense to me. Try adding a /b:

copy /b file.tar.aa+file.tar.ab file.tar

I hate Windows so much. Why does it do stupid stuff like that?
 
it works...
but...when I tried to extract it
! E:\Backupz\Downloads\New Folder\File.tar: CRC failed in File. The file is corrupt
! E:\Backupz\Downloads\New Folder\File.tar: Unexpected end of archive
! E:\Backupz\Downloads\New Folder\File.tar: CRC failed in File. The file is corrupt

I give up for now, maybe the tar file already corrupted when I split it
I even tried to join it with HJSPLIT, it works too but same result, corrupted

is there another way to split just like zip/rar method? (no need to join it first)
so it can be extracted w/ any compressor software?

and question again: how to unzip the zip file?

sorry if I'm asking to much, and thank you for everyone that help me :)
* specially JOE, wget rulez :D
 
CRC checksums are stored in headers, as mentioned, Windows won't know what to do with these headers, and so they aree corrupted.

you should have unzip available on your system

Code:
unzip file.zip

download rar for linux

Code:
cd /home/you/rar
wget -q http://rarlab.com/rar/rarlinux-3.6.0.tar.gz
tar xzf rarlinux-3.6.0

you may want to extract to a system path, such as /sbin or /usr/local/bin but for now that'll do.....

to make multi volumes do

Code:
/home/you/rar/rar a -v2048 /home/you/archive.rar

where /home/you/rar/rar is the the location of the rar binary
where 2048 is the size in KBs for each archive 2048 = 2MB
where /home/you/archive.rar is the location for archives.

Obviously, WinRAR will be capable of unzipping these files......
 
Back
Top