Provided is a method, system, and program for automatically handling an
error when retrieving a file for an application. An error is detected while the
application retrieves a file from the storage device. A user defined policy is
checked to determine whether a backup copy should be restored, and the file is
restored from the backup copy if the user defined policy indicates that the backup
copy should be used.