Splitting Files

I previously talked about breaking a tar archive into multiple segments. I hadn’t used this knowledge until I was forced to backup to multiple DVD’s because until I had failing hardware. Because it saved the day, I put this knowledge into HOWTO Backup to DVD at the GLW – which (btw) )is down at the moment :) .

Splitting Files

If there is a file that is already large, the command split can be used break it up:
split -b 650m linux-backup LB_

  • 650m = 650 Megabytes
  • LB_ is the prefix for new name

Or in conjunction with tar:
tar -cvj /full/path/to/mybigfile | split -b 650m

To put it back together:
cat LB* > newfile

When GLW is up again, I’ll update the wiki.

About Gen2ly

<3's linux

Posted on 2008-02-07, in Linux. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 58 other followers

%d bloggers like this: