git-annex/doc/git-annex-transferkey.mdwn
Joey Hess 31ed034f69
incomplete multiple --from / --to support
Note that --from foo --to bar is still not allowed by the option parser.
The goal of this change is only to support the same action over a group
of remotes, not multiple different actions. For the same reason
--to here --to foo is not allowed, since that's really two different
actions.

Each file is processed for all listed remotes in turn, so this is not
the same as two git-annex commands run in sequence. Instead, it allows
concurrent actions to several remotes.

Only move and transferkey converted so far. The code in Command.Move is
ugly and needs to be refactored and generalized.
Build fails due to unconverted modules.

This commit was sponsored by Fernando Jimenez on Patreon.
2018-10-01 15:40:12 -04:00

37 lines
668 B
Markdown

# NAME
git-annex transferkey - transfers a key from or to a remote
# SYNOPSIS
git annex transferkey `key [--from=remote ... |--to=remote ...]`
# DESCRIPTION
This plumbing-level command is used to request a single key be
transferred.
# OPTIONS
* `--from=remote`
Download the content of the key from the remote.
* `--to=remote`
Upload the content of the key to the remote.
* `--file=name`
Provides a hint about the name of the file associated with the key.
(This name is only used in progress displays.)
# SEE ALSO
[[git-annex]](1)
# AUTHOR
Joey Hess <id@joeyh.name>
Warning: Automatically converted into a man page by mdwn2man. Edit with care.