<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Werner Almesberger schrieb:
<blockquote cite="mid:20091019161657.GD4023@almesberger.net" type="cite">
  <pre wrap="">Matthias Huber wrote:
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap=""># blockrestore.sh
#!/bin/sh -x
for i in 1 2 3 4 5 6 ; do echo cp ${i}_* /dev/mtdblock$i ; cp
${i}_* /dev/mtdblock$i ; done

and in practice, this works for backup _and_ restore

      </pre>
    </blockquote>
    <pre wrap="">but the backup with the assumption, that there are the destination
files already in the directory, like:
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Hmm, don't you also assume that the partition has been erased before
writing ? Also, what happens if you have any bad blocks ?

  </pre>
</blockquote>
No, erasing seemed not to be necessary.<br>
why should i erase it ?<br>
<br>
Bad Blocks: No i didnt even thing of it.<br>
the four times i did a backup and two or three times i did a restore,
there was no problem.<br>
but you are of course right, one has to have a look at it.<br>
<br>
<br>
</body>
</html>