arkam
New Member
Posts: 13
|
Post by arkam on May 31, 2007 15:50:30 GMT 7
Hi,
I am writing a shell script to backup my raid on an usb hdd.
With my first test he script took more than 8 hours to complete (for 80GB from /raid to usb) !!!!!!! Can someone explain this ? Is this USB1 (High Speed) only ? -> the backup is done with RSYNC
Can someone tell me how mount works with usb drives ?
Thanks,
Arkam
|
|
arkam
New Member
Posts: 13
|
Post by arkam on Jun 2, 2007 3:37:06 GMT 7
I just found out that my FAT32 Usb-Drive has a case-sensitive filesystem!
That is why RSYNC had a lot of errors in its log ... copying MESSAGE produced a message directory!
Unmounting the drive and remounting with shortname=winnt solves the problem
I am trying a new backup to test if it solves the speed problem too!
|
|
|
Post by getmythe on Jun 2, 2007 4:23:45 GMT 7
I'm afraid the speed won't improve much; rsync does bring the CPU to it's kees. That's why I wrote meta script onebtn_backup.sh such that it does perform the very first backup using tar instead of rsync. This will cut the backup time by a factor of two.
|
|
arkam
New Member
Posts: 13
|
Post by arkam on Jun 2, 2007 4:33:09 GMT 7
My first backup with RSYNC took more than 10 hours ... but the second one took quite the same time (with RSYNC too)!
Are you suggesting me to switch to tar for my backup on my USB disc? Tar will copy *everything* new every day which is not very efficient!
On windows I am using robocopy which is quite fast ... but I thought I had to use RSYNC on the N2100 ...
Do you have another option?
|
|
arkam
New Member
Posts: 13
|
Post by arkam on Jun 2, 2007 14:01:01 GMT 7
With the new mount type (shortname=winnt) my backup took 2.5 hours with no errors!
That did the trick ...
I am now looking for a way to determine when I have to use this option when mounting a drive (how can I detect that a drive needs this?) and how to patch the usb.hotplug file to automount the device correctly!
Can someone help?
Thanks
|
|
|
Post by getmythe on Jun 2, 2007 16:29:25 GMT 7
Maybe I wasn't explaining things well enough, or maybe you just ignored half of my reply? Let's try again, ...
the initial backup is performed with tar instead of rsync since the first time ALL data needs to be backed up. In this situation tar is much faster as it does not calculate checksums in the progress.
getmythe
|
|