/p2pcp

An application that provides fast file system replication with peer-to-peer transfer.

Primary LanguageGoApache License 2.0Apache-2.0

p2pcp

An application that provides fast file system replication with peer-to-peer transfer.

It supports:

  • zstd compression
  • updating peer list from HTTP URL
  • concurrent transfer for each peers
  • seed-only mode
  • local transfer

Usage

Seed mode.

p2pcp -src <SRCDIR>

Peer-to-peer mode.

p2pcp -dst <DSTDIR> -peer-list <SEEDER OR PEER[,PEER2,...]>

Peer-to-peer mode during local data copy(Useful for copying data from shared network storage).

p2pcp -src <SRCDIR> -dst <DSTDIR> -peer-list <SEEDER OR PEER[,PEER2,...]>

Show more features.

p2pcp -help

License

Copyright (c) 2023-present NAVER Corp.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

TODO

  • HTTP/2 multiplexing
  • Global limitation of concurrent transfer
  • Seeding daemon for distributed storage
  • Peer authentication
  • Bandwidth limitation
  • Centralized logging
  • Cache management(fadvise)