Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2002 23:42:09 +0000
From:      Daniel Bye <dan@slightlystrange.org>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: TAR HELP
Message-ID:  <20020326234209.GB29111@icarus.slightlystrange.org>
In-Reply-To: <006001c1d515$48407d60$3866fed8@Leda500>
References:  <006001c1d515$48407d60$3866fed8@Leda500>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 26, 2002 at 05:26:31PM -0500, LEDAMAY speakeasy wrote:
> Anyone know how to create a tar file that spans say... 30meg chunks?
> 
> I want to backup a server's /home drive and the tar file is over 5gigs...
> Windows will not allow a file that large and it is a window machine I wanna
> back it up to... If I can break it apart in chunks it will. Pkzip will do
> what I want on a windows machine.. IE pkzip -r -p -v1440 or what ever it
> was... and there is a way with the tar utility.. I just forget how
> PLEASE LEMME KNOW!
> 

This is going to be really ugly, so avert your eyes now if you are feeling
sensitive...


tar cvf mytarfile.tar /home
split -b 100m mytarfile.tar splitfile.
## You end up with 100MB files, named splitfile.aa, splitfile.ab, etc
cat splitfile.* >> mytarfile_reconstituted.tar


Messy, but it works!

Dan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020326234209.GB29111>