In Babylon Alexandria, docking ships were required to surrender any and all written materials to the library. There, scribes would make a copy of everything that was submitted.
The originals of the documents were stored in the library and the copies were given back to the ships.