Author Topic: Bzip Or Only Tar Via Usb  (Read 3820 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Bzip Or Only Tar Via Usb
« on: July 03, 2006, 06:48:31 am »
I have a 3200 and want to back up the harddrive, which is full, cca 6 gig...

So what I'm gonna do, is attach an iPod or external harddrive via the USB, and back up the data there.

Now considering USB write to an external harddisk is slow, but tar bzipping the files is also slow due to the Z's processor, what would be better in this case.

Explanation, I can't pre tar, or pre tar bzip the files to a CF or the harddrive itself because it's full, so I'm gonna launch either tar or tar bzip directly from the Z to write to the external harddisk.

Option 1: tar the files to the external harddisk, which will mean more data to be sent over the USB, but no slowing down due to compressing the data by the Z's processor.

Option 2: tar bzip the files to the external harddisk, which will mean less data to be sent over the USB, but being slower due to bzipping the files by the Z's processor.

Which option will result in a faster execution of the whole process.

It will surely take a number of hours, but what would be the recommendation?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Bzip Or Only Tar Via Usb
« Reply #1 on: July 04, 2006, 07:38:36 am »
You may spend more time working out the optimum solution than it takes to actually choose one and get on with it

Anyway it sounds like an interesting optimisation task. You need to work out roughly what level of compression (and therefore time/mb) your data will produce vs the transfer speed.

A couple of test runs to work out bzip compression speed (for the average file) and usb transfer speed will give you enough info to work out the fastest way, or you might want to optimise depending on file type, so you don't bother compressing certain types, which will transfer faster uncompressed than compressed + compression time.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Bzip Or Only Tar Via Usb
« Reply #2 on: July 04, 2006, 08:48:31 am »
maybe you'd be better of using rsync to copy the files, that way you can restart the copying if it fails as rsync will see if the target already exists, and rsync has its own compression modes.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Bzip Or Only Tar Via Usb
« Reply #3 on: July 04, 2006, 08:49:00 am »
p.s. you could use rsync to copy the files to a desktop computer using usb networking instead, or use wifi?
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Bzip Or Only Tar Via Usb
« Reply #4 on: July 04, 2006, 09:00:13 am »
Yep, good suggestion. However I need to archive to a FAT volume, so can't use rsync and have to somehow tar and/or compress.  
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Bzip Or Only Tar Via Usb
« Reply #5 on: July 04, 2006, 10:30:57 am »
Could you not mount the drive as a mass storage device and perform the compression on the desktop machine (not the optimum solution in terms of time, but at least you'll get everything compressed quickly)? Or is the HDD (in the Z) not FAT formatted (I thought they were)?


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Bzip Or Only Tar Via Usb
« Reply #6 on: July 04, 2006, 10:43:04 am »
Quote
Could you not mount the drive as a mass storage device and perform the compression on the desktop machine (not the optimum solution in terms of time, but at least you'll get everything compressed quickly)? Or is the HDD (in the Z) not FAT formatted (I thought they were)?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=133882\"][{POST_SNAPBACK}][/a][/div]
Yep, I reformatted the HD to ext3, so have to do it from the Z.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Bzip Or Only Tar Via Usb
« Reply #7 on: July 04, 2006, 12:04:20 pm »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva