View Single Post
  #5   (View Single Post)  
Old 29th July 2010
sharris sharris is offline
Package Pilot
 
Join Date: Jun 2010
Posts: 146
Default

BSDfan666 I think you're going to really like this one. UNIX size limitation is now OVER ... now I can backup any size partition or file and save it as a file as gzip compress the stuffing out of it, FAST making it very small. Don't overlook the *, - and the period in commandline below. Works like a charm.

COPY A PARTITION:
dd if=/dev/ad4s3 | gzip -c | split -b 2000m - /b/FreeBSD-8.1-ad4s3.gz.

RESTORE A PARTITION:
cat /b/FreeBSD-8.1-ad4s3.gz.* | gzip -dc | dd of=/dev/ad4s3

...
...
output:
/b/FreeBSD-8.1-ad4s3.gz.aa
/b/FreeBSD-8.1-ad4s3.gz.ab
/b/FreeBSD-8.1-ad4s3.gz.ac
...
...
Just like the FreeBSD base system format
Reply With Quote