aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/manage_repository_connection_between_external_HDD_and_server.mdwn
blob: d5d49e9e880843e07e29d90d4e48ef63b1dbc38c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
I have one server, two computers, and one external HDD.

The git-annex repo on my server (`nhost`) has the following remotes:

```
qhost	qhost:NIdata (fetch)
qhost	qhost:NIdata (push)
zhost	zhost:NIdata (fetch)
zhost	zhost:NIdata (push)
```

The repo on `zhost` has the following remotes:

```
data0	/run/media/mee/data0/NIdata/ (fetch)
data0	/run/media/mee/data0/NIdata/ (push)
nhost	nhost:NIdata (fetch)
nhost	nhost:NIdata (push)
```

The repo on my HDD (`data0`) has thefollowing remotes:

```
nhost		nhost:NIdata (fetch)
nhost		nhost:NIdata (push)
qhost		/qhost/home/mee/NIdata/ (fetch)
qhost		/qhost/home/mee/NIdata/ (push)
zhost		/zhost/home/mee/NIdata/ (fetch)
zhost		/zhost/home/mee/NIdata/ (push)
```

Any ideas how I can set up a remote from `nhost` to `data0`, without making the identity of data0 dependent on which machine I am using on each particular session?