2009-10-12
Ok, discovering 'all USB storage' is not ...
Ok, discovering 'all USB storage' is not that hard:ALLSTICKS=`/bin/ls /dev/disk/by-path/*usb*part1 2>/dev/null`Now for the choice whether to fill them in parallel or serially. With two sticks (the amount I have available at the moment for testing) running two rsync processes in parallel makes the whole script (discover, mount, fill with rsync, unmount) take 27 seconds, waiting for the first rsync to finish before starting the second one takes 35 seconds. Interesting will be how these numbers look when I add more USB sticks.