In ancient Egypt, all ships visiting Alexandria were obliged to surrender their books to the Great Library of Alexandria and be copied. The original would be kept in the library and the copy given back to the owner.