def find_all(self, query):
match = re.match(storage.BASE_BACKUP_REGEXP, query)<EOL>if match is not None:<EOL><INDENT>for backup in iter(self):<EOL><INDENT>if backup.name == query:<EOL><INDENT>yield backup<EOL><DEDENT><DEDENT><DEDENT>elif query == '<STR_LIT>':<EOL><INDENT>all_backups = list(iter(self))<EOL>if not all_backups:<EOL><INDENT>return<EOL><DEDENT>assert len(all_backups) > <NUM_LIT:0><EOL>all_backups.sort(key=lambda bi: bi.last_modified)<EOL>yield all_backups[-<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>raise exception.UserException(<EOL>msg='<STR_LIT>',<EOL>detail='<STR_LIT>'<EOL>.format(query))<EOL><DEDENT>
A procedure to assist in finding or detailing specific backups

        Currently supports:

        * a backup name (base_number_number)

        * the psuedo-name LATEST, which finds the backup with the most
          recent modification date