2016-11-22 19:17:27 +00:00
|
|
|
# NAME
|
|
|
|
|
2016-11-29 21:31:10 +00:00
|
|
|
git-annex p2p - configure peer-2-peer links between repositories
|
2016-11-22 19:17:27 +00:00
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
|
|
|
git annex p2p [options]
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
2016-11-29 21:31:10 +00:00
|
|
|
This command can be used to link git-annex repositories over peer-2-peer
|
|
|
|
networks.
|
2016-11-22 19:17:27 +00:00
|
|
|
|
2016-11-30 18:35:24 +00:00
|
|
|
Currently, the only P2P network supported by git-annex is Tor hidden
|
|
|
|
services.
|
|
|
|
|
2016-11-22 19:17:27 +00:00
|
|
|
# OPTIONS
|
|
|
|
|
2016-12-18 20:50:58 +00:00
|
|
|
* `--pair`
|
|
|
|
|
|
|
|
Run this in two repositories to pair them together over the P2P network.
|
|
|
|
|
|
|
|
This will print out a code phrase, like "3-mango-elephant", and
|
|
|
|
will prompt for you to enter the code phrase from the other repository.
|
|
|
|
|
|
|
|
Once code phrases have been exchanged, the two repositories will
|
|
|
|
be paired. A git remote will be created for the other repository,
|
|
|
|
with a name like "peer1".
|
|
|
|
|
|
|
|
This uses [Magic Wormhole](https://github.com/warner/magic-wormhole)
|
|
|
|
to verify the code phrases and securely communicate the P2P addresses of
|
|
|
|
the repositories, so you will need it installed on both computers that are
|
|
|
|
being paired.
|
|
|
|
|
2018-07-05 15:52:52 +00:00
|
|
|
This feature was present in a broken form in git-annex versions
|
|
|
|
before version 6.20180705. Make sure that a new enough git-annex
|
|
|
|
is installed on both computers that are being paired.
|
|
|
|
|
2018-07-04 18:42:57 +00:00
|
|
|
* `--gen-addresses`
|
2016-11-22 19:17:27 +00:00
|
|
|
|
2016-11-29 21:31:10 +00:00
|
|
|
Generates addresses that can be used to access this git-annex repository
|
2016-11-30 18:35:24 +00:00
|
|
|
over the available P2P networks. The address or addresses is output to
|
2016-12-18 20:50:58 +00:00
|
|
|
stdout.
|
|
|
|
|
|
|
|
Note that anyone who knows these addresses can access your
|
|
|
|
repository over the P2P networks.
|
2020-05-05 16:39:38 +00:00
|
|
|
|
|
|
|
This can be run repeatedly, in order to give different addresses
|
|
|
|
out to different people.
|
2016-11-22 19:17:27 +00:00
|
|
|
|
2016-12-16 19:36:59 +00:00
|
|
|
* `--link`
|
2016-11-22 19:17:27 +00:00
|
|
|
|
2016-12-16 22:26:07 +00:00
|
|
|
Sets up a git remote that is accessed over a P2P network.
|
2016-11-30 19:14:54 +00:00
|
|
|
|
|
|
|
This will prompt for an address to be entered; you should paste in the
|
2018-07-04 18:42:57 +00:00
|
|
|
address that was generated by --gen-addresses in the remote repository.
|
2016-11-22 19:17:27 +00:00
|
|
|
|
2016-12-16 22:26:07 +00:00
|
|
|
Defaults to making the git remote be named "peer1", "peer2",
|
|
|
|
etc. This can be overridden with the `--name` option.
|
2016-12-16 19:36:59 +00:00
|
|
|
|
|
|
|
* `--name`
|
|
|
|
|
2016-12-18 20:50:58 +00:00
|
|
|
Specify a name to use when setting up a git remote with `--link`
|
|
|
|
or `--pair`.
|
2016-12-16 19:36:59 +00:00
|
|
|
|
2016-11-22 19:17:27 +00:00
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
[[git-annex]](1)
|
|
|
|
|
|
|
|
[[git-annex-enable-tor]](1)
|
|
|
|
|
|
|
|
[[git-annex-remotedaemon]](1)
|
|
|
|
|
2016-12-18 20:50:58 +00:00
|
|
|
wormhole(1)
|
|
|
|
|
2016-11-22 19:17:27 +00:00
|
|
|
# AUTHOR
|
|
|
|
|
|
|
|
Joey Hess <id@joeyh.name>
|
|
|
|
|
|
|
|
Warning: Automatically converted into a man page by mdwn2man. Edit with care.
|