There's an exception 'for the establishment, exercise or defence of legal claims.', but there's situations where that would not apply. E.g. commits fixing a single spelling mistake are probably not copyrightable.
Also, I doubt you can just keep a copy of all data you ever process, just because it might some day be useful as legal evidence.