From: <jc...@co...> - 2003-07-09 18:38:18
|
Thanks for your answer Matthew, I'm already using dd. Trouble is that I'd have to do like dd if=3D/dev/hda skip=3D0k count=3D500k | gzip -c /mnt/backup/image.hda.part1.gz dd if=3D/dev/hda skip=3D500k count=3D500k | gzip -c /mnt/backup/image.hda.part2.gz dd if=3D/dev/hda skip=3D1000k count=3D500k | gzip -c /mnt/backup/image.hda.part3.gz dd if=3D/dev/hda skip=3D1500k count=3D500k | gzip -c /mnt/backup/image.hda.part4.gz dd if=3D/dev/hda skip=3D2000k count=3D500k | gzip -c /mnt/backup/image.hda.part5.gz dd if=3D/dev/hda skip=3D2500k count=3D500k | gzip -c /mnt/backup/image.hda.part6.gz dd if=3D/dev/hda skip=3D3000k count=3D500k | gzip -c /mnt/backup/image.hda.part7.gz ...and so forth... which seems a bit cumbersome. It'd be better if the split command or something similar was available. Then I'd be able to do like this dd if=3D/dev/hda | gzip -c | split -b 1900m - /mnt/backup/images.= hda.gz Only the split command doesn't seem to be available in Trinux - or at l= east I haven't found the right package yet. /J=F8rn = = =20 Matthew Franz = = =20 <mf...@ci...> To: jco= @cornelius-olsen.dk = =20 Sent by: cc: tri= nux...@li... = =20 tri...@li...ur Subject: Re:= [Trinux-talk] Splitting a file = =20 ceforge.net = = =20 = = =20 = = =20 09-07-2003 19:19 = = =20 = = =20 = = =20 On Wed, Jul 09, 2003 at 06:52:34PM +0200, jc...@co... wrote:= > Hi, > > I'm using Trinux to back up Windows workstations by imaging the disk drive > with dd and sending the result to the backup server over Samba. Troub= le is > that Samba chokes on files larger than 2 GB. Therefore I'm trying to = find > out how to split the piped result into several files. Which command, > available in Trinux, would I use for that and which package is it in?= > > Any help appreciated. Thanks. > > You should be able to use the count and seek options with dd to do this. The dd in the fileutil.tgz package should have the full (GNU) version of dd (vs. a busybox version). from man dd Copy a file, converting and formatting according to the options. bs=3DBYTES force ibs=3DBYTES and obs=3DBYTES cbs=3DBYTES convert BYTES bytes at a time conv=3DKEYWORDS convert the file as per the comma separated keyword list count=3DBLOCKS copy only BLOCKS input blocks ibs=3DBYTES read BYTES bytes at a time if=3DFILE read from FILE instead of stdin obs=3DBYTES write BYTES bytes at a time of=3DFILE write to FILE instead of stdout seek=3DBLOCKS skip BLOCKS obs-sized blocks at start of output skip=3DBLOCKS skip BLOCKS ibs-sized blocks at start of input ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ Trinux-talk mailing list Tri...@li... https://lists.sourceforge.net/lists/listinfo/trinux-talk = |