Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Split Archive tar.gz?


  • Please log in to reply
3 replies to this topic

#1 Crop

Crop

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 59 posts

Posted 02 January 2009 - 05:30 PM

Is it possible to generate a split type archive using tar? Similar to what RAR does:

file1.rar
file2.r01
file3.r02
etc...

When unrarring file1.rar it automatically collects r01, r02, etc.
  • 0

#2 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 06 January 2009 - 09:36 AM

You can use /usr/bin/split with the -b option. This will make split files specifying the byte size. You would then have to join them again. You could use cat for this.
  • 0

#3 Tor

Tor

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 448 posts

Posted 09 January 2009 - 06:47 AM

A better alternative might be to just use RAR.....
  • 0

#4 Guest_Jordan_*

Guest_Jordan_*
  • Guest

Posted 15 January 2009 - 07:33 AM

True but not all installations come with unrar by default.
  • 0




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download