• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Recursively Copy Files, ignoring I/O Errors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Recursively Copy Files, ignoring I/O Errors


  • Subject: Recursively Copy Files, ignoring I/O Errors
  • From: Marconi <email@hidden>
  • Date: Sat, 5 Jun 2004 12:38:04 -0700

My daughter's iMac has suffered massive HD damage, tens of thousands of bad sectors. Neither Drive 10 nor TechTool pro 4 can repair anything. The damage is so bad that when I click the directory "Desktop" in her home directory while in column view, Finder quits and restarts.

At this point, I'd just like to copy anything that is not damaged from her drive to a new volume. Unfortunately, If I try to copy even several files at a time, if even one I/O error occurs, Finder aborts the entire copy operation. Worse, it leave lots of incomplete, "in use" files in the destination.

This means that I can either copy tens of thousands of files, one at a time in Finder, or try to script a way to recursively copy whatever is copyable and ignore all I/O errors. I've searched VersionTracker for something suitable and come up empty. So...

I'd like to be able to simply designate her current (damaged) user home directory as the source, designate a destination on another volume, and have a script copy everything therein, recursively, that doesn't result in an I/O error. If a file does result in an I/O error, ignore it and more on.

Anyone have a script to do this?

Is a Unix-y script better? Anyone have an idea how to copy (including resource forks, where present) in terminal, recursively, ignoring files that cannot be read?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Recursively Copy Files, ignoring I/O Errors
      • From: Graff <email@hidden>
    • Re: Recursively Copy Files, ignoring I/O Errors
      • From: Emmanuel <email@hidden>
  • Prev by Date: Scripting a mail Appliance
  • Next by Date: Re: Recursively Copy Files, ignoring I/O Errors
  • Previous by thread: Scripting a mail Appliance
  • Next by thread: Re: Recursively Copy Files, ignoring I/O Errors
  • Index(es):
    • Date
    • Thread