From owner-freebsd-questions@FreeBSD.ORG Mon Jun 20 12:58:18 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A916616A41C for ; Mon, 20 Jun 2005 12:58:18 +0000 (GMT) (envelope-from racerx@makeworld.com) Received: from makeworld.com (makeworld.com [216.201.118.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5925443D49 for ; Mon, 20 Jun 2005 12:58:18 +0000 (GMT) (envelope-from racerx@makeworld.com) Received: from localhost (localhost.com [127.0.0.1]) by makeworld.com (Postfix) with ESMTP id 88B9260E3; Mon, 20 Jun 2005 07:58:17 -0500 (CDT) Received: from makeworld.com ([127.0.0.1]) by localhost (makeworld.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19357-06; Mon, 20 Jun 2005 07:58:15 -0500 (CDT) Received: from [216.201.118.138] (racerx.makeworld.com [216.201.118.138]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by makeworld.com (Postfix) with ESMTP id 2496660E2; Mon, 20 Jun 2005 07:58:12 -0500 (CDT) Message-ID: <42B6BD75.3070609@makeworld.com> Date: Mon, 20 Jun 2005 07:58:29 -0500 From: Chris User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Andrew L. Gould" References: <200506192231.18309.algould@datawok.com> In-Reply-To: <200506192231.18309.algould@datawok.com> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by ClamAV 0.75.1/amavisd-new-2.3.1 (20050509) at makeworld.com - Isn't it ironic Cc: freebsd-questions@freebsd.org Subject: Re: OT: usage of split X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: racerx@makeworld.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2005 12:58:18 -0000 Andrew L. Gould wrote: > Regarding the usage of split to divide files into several parts: > > 1. Can the split utility be used on binary files? > > 2. How does one rejoin the resulting split files to recreate the > original file? I assume you can cat text files into a new file using > redirection (>>); but can you do that with a binary file? > > Thanks, > > Andrew Gould I had somewhat of the same question. Here's my docs on how it was explained to me: To create a tarball backup and split it up for CD burning. Something like: tar cjf - /dir/to/backup |split -b 650m - bkupname- Note that using a pipe saves s lot of space. This will produce backups in the form of bkupname-aa, bkupname-ab etc. Restoring the backup would be something like: cd /parent/of/backupdir; cat /path/to/bkup/bkupname-* |tar xjf - Note that you need to have all backup files on a disk for this to work properly. This is what I do to archive my system to a CD Rom. It's sorta like what winzip does with diskette spanning. -- Best regards, Chris The man who has no more problems is out of the game.