File synchronization with peer-to-peer method