Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Search Forums:



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-21-2007
Registered User
 

Join Date: Nov 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Split the file in tar

I want to use tar to pack all /home in a file, but it is large than 4 GB and can't burn to DVDR for storage. How can I set in tar to make it will split in every 4GB size ?
Sponsored Links
    #2  
Old 01-21-2007
Registered User
 

Join Date: Oct 2005
Location: Chennai
Posts: 370
Thanks: 0
Thanked 3 Times in 3 Posts
tar n split

tar and then split it into manageable sizes.

Code:
split -b 4096m test.tar reqd_filename

I am not sure if it is a good option.
Sponsored Links
    #3  
Old 01-22-2007
Registered User
 

Join Date: Nov 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
how can I combine into one? using the same command 'split'?
    #4  
Old 01-22-2007
Registered User
 

Join Date: Jan 2007
Location: India-Gujarat-Jamnagar
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
dear
compress command you can use. the write cd/dvd
it's a safer way.
or use man command for join the file
Sponsored Links
    #5  
Old 01-22-2007
Registered User
 

Join Date: Nov 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
does Tar support splitting the *.tar file into specific size?
Sponsored Links
    #6  
Old 01-22-2007
Registered User
 

Join Date: Jan 2007
Location: India-Gujarat-Jamnagar
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
dear
tar can be used to create archives of compressed files that are
uncompressed when they are extracted

compress ./tmp/*
tar Cvf tmpZ.tar ./temp/*

SAME HELP YOU CAN FIND WITH
man tar
Sponsored Links
    #7  
Old 01-22-2007
Moderator
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 12,192
Thanks: 233
Thanked 1,707 Times in 1,635 Posts
Quote:
Originally Posted by zp523444
does Tar support splitting the *.tar file into specific size?
No.
Quote:
Originally Posted by zp523444
how can I combine into one? using the same command 'split'?
cat file1 file2 file3 > bigfile
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Split large file and add header and footer to each file ashish4422 Shell Programming and Scripting 1 04-15-2008 06:12 AM
Split a file with no pattern -- Split, Csplit, Awk madhunk UNIX for Dummies Questions & Answers 10 12-17-2007 11:57 AM
split the file name rinku Shell Programming and Scripting 1 05-28-2007 01:47 AM
Need to split the file getdpg Shell Programming and Scripting 11 09-04-2006 03:08 AM
How to split file by tags inside file? spookyrtd99 Shell Programming and Scripting 1 07-31-2006 12:50 AM



All times are GMT -4. The time now is 03:51 AM.