You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2024. It is now read-only.
The idea here is to mirror the repository using crontab every minute.
4
+
- As you all know about [Gitlab Mirror Issue](https://gitlab.com/gitlab-com/support-forum/-/issues/5331).
5
+
- Now in new premium update gitlab had stopped the mirroring of external repository making it's a [premium feature](https://about.gitlab.com/releases/2020/03/12/free-period-for-cicd-external-repositories/), so this is a replication of that feature.
6
+
7
+
## Installation
8
+
9
+
Just make sure you have self hosted server or local linux environment.
10
+
11
+
Also make sure you have Github and Gitlab ssh installed.
12
+
13
+
*##### Set `crontab -e`
14
+
15
+
```bash
16
+
***** sh /path/to/mirror.sh >/dev/null 2>&1
17
+
```
18
+
* Edit mirror.php and set appropriate git ssh config for repository on line number 19 and 22
19
+
20
+
## Any cause of failure on self-hosted server:
21
+
22
+
- The public ssh key of www-data should have read and write access to source repository.
23
+
- If the SSH server is not trusted the connection will fail.
24
+
- To avoid non trusted connection to server, run `ssh -T [email protected]` and `ssh -T [email protected]` at least once to get its fingerprint into the local SSH configuration or hosted server ssh configuration.
25
+
26
+
* More info on duplicating the repository [Duplicating Repository](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/duplicating-a-repository)
27
+
28
+
## Contributing
29
+
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
0 commit comments