All pastes #136533 Raw Edit

Anonymous

public text v1 · immutable
#136533 ·published 2006-08-17 19:11 UTC
rendered paste body
#!/bin/bash
	
find $1 -type f | while read file
{
  while (1)
  {
    echo cp --preserve=all --no-dereference --parents "$file" "$2";

     #make sure it copied fine
     if [ $? -ne 0 ]; then
       echo 'An error has occured, perhaps the medium is full. Press enter to continue, or CTRL+c to quit';
       read;
     else
       break;
     fi;
  };
};

echo 'complete';
exit;