2015-03-23 22:20:42 +00:00
|
|
|
# NAME
|
|
|
|
|
2016-05-24 19:24:38 +00:00
|
|
|
git-annex enableremote - enables git-annex to use a remote
|
2015-03-23 22:20:42 +00:00
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
2015-10-26 18:55:40 +00:00
|
|
|
git annex enableremote `name|uuid|desc [param=value ...]`
|
2015-03-23 22:20:42 +00:00
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
2016-05-24 19:24:38 +00:00
|
|
|
Enables use of an existing remote in the current repository.
|
2015-03-23 22:20:42 +00:00
|
|
|
|
2016-05-24 19:24:38 +00:00
|
|
|
This is often used to enable use of a special (non-git) remote, by
|
|
|
|
a different repository than the one in which it was
|
|
|
|
originally created with the initremote command.
|
|
|
|
|
|
|
|
It can also be used to explicitly enable a git remote,
|
|
|
|
so that git-annex can store the contents of files there. First
|
|
|
|
run `git remote add`, and then `git annex enableremote` with the name of
|
|
|
|
the remote.
|
|
|
|
|
|
|
|
When enabling a special remote, specify the same name used when originally
|
2015-03-23 22:20:42 +00:00
|
|
|
creating that remote with `git annex initremote`. Run
|
|
|
|
`git annex enableremote` without any name to get a list of
|
2015-10-26 18:55:40 +00:00
|
|
|
special remote names. Or you can specify the uuid or description of the
|
2016-05-24 19:24:38 +00:00
|
|
|
special remote.
|
2015-03-23 22:20:42 +00:00
|
|
|
|
|
|
|
Some special remotes may need parameters to be specified every time they are
|
|
|
|
enabled. For example, the directory special remote requires a directory=
|
2020-01-15 18:09:30 +00:00
|
|
|
parameter every time. The command will prompt for any required parameters
|
|
|
|
you leave out.
|
2015-09-14 18:49:48 +00:00
|
|
|
|
2015-03-23 22:20:42 +00:00
|
|
|
This command can also be used to modify the configuration of an existing
|
2015-09-14 18:49:48 +00:00
|
|
|
special remote, by specifying new values for parameters that are
|
|
|
|
usually set when using initremote. (However, some settings such as
|
2015-03-23 22:20:42 +00:00
|
|
|
the as the encryption scheme cannot be changed once a special remote
|
|
|
|
has been created.)
|
2015-09-14 18:49:48 +00:00
|
|
|
|
2015-03-23 22:20:42 +00:00
|
|
|
The GPG keys that an encrypted special remote is encrypted with can be
|
|
|
|
changed using the keyid+= and keyid-= parameters. These respectively
|
|
|
|
add and remove keys from the list. However, note that removing a key
|
|
|
|
does NOT necessarily prevent the key's owner from accessing data
|
|
|
|
in the encrypted special remote
|
|
|
|
(which is by design impossible, short of deleting the remote).
|
|
|
|
|
|
|
|
One use-case of keyid-= is to replace a revoked key with
|
|
|
|
a new key:
|
|
|
|
|
|
|
|
git annex enableremote mys3 keyid-=revokedkey keyid+=newkey
|
|
|
|
|
|
|
|
Also, note that for encrypted special remotes using plain public-key
|
|
|
|
encryption (encryption=pubkey), adding or removing a key has NO effect
|
|
|
|
on files that have already been copied to the remote. Hence using
|
|
|
|
keyid+= and keyid-= with such remotes should be used with care, and
|
|
|
|
make little sense except in cases like the revoked key example above.
|
|
|
|
|
2015-09-14 18:49:48 +00:00
|
|
|
If you get tired of manually enabling a special remote in each new clone,
|
|
|
|
you can pass "autoenable=true". Then when [[git-annex-init]](1) is run in
|
|
|
|
a new clone, it will will attempt to enable the special remote. Of course,
|
|
|
|
this works best when the special remote does not need anything special
|
|
|
|
to be done to get it enabled.
|
|
|
|
|
2016-05-24 19:48:22 +00:00
|
|
|
(This command also can be used to enable a remote that git-annex has been
|
|
|
|
prevented from using by the `remote.<name>.annex-ignore` setting.)
|
|
|
|
|
2015-03-23 22:20:42 +00:00
|
|
|
# SEE ALSO
|
|
|
|
|
|
|
|
[[git-annex]](1)
|
|
|
|
|
2015-05-29 16:12:55 +00:00
|
|
|
[[git-annex-initremote]](1)
|
|
|
|
|
2015-03-23 22:20:42 +00:00
|
|
|
# AUTHOR
|
|
|
|
|
|
|
|
Joey Hess <id@joeyh.name>
|
|
|
|
|
|
|
|
Warning: Automatically converted into a man page by mdwn2man. Edit with care.
|