Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honarkhah/sync-mirror-gitlab
syncing mirror repository on gitlab
https://github.com/honarkhah/sync-mirror-gitlab
Last synced: 7 days ago
JSON representation
syncing mirror repository on gitlab
- Host: GitHub
- URL: https://github.com/honarkhah/sync-mirror-gitlab
- Owner: honarkhah
- License: gpl-2.0
- Created: 2018-04-14T12:53:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-14T13:08:55.000Z (over 6 years ago)
- Last Synced: 2023-07-25T18:09:22.098Z (over 1 year ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sync-mirror-gitlab
syncing mirror repository on gitlab:this functionality work on imported repository to gitlab , or you need set an remote on each repository you need to sync with mirror,
functionality:
check mirror group on gitlab and iterate on that for finding repositories need to sync
on each repository check all remote and try to fetch update from that remote.you can set a cron for syncing automatically:
```
# m h dom mon dow user command
* * * * * root bash /root/syncing-git-script/syncronize-git-mirror.sh
```overlap between cron job is handled
log of syncing is stored on logpath based on config file
```LOGPATH="/var/log/"```
sometimes you need set a logrotation because of logfile size
you can set a logrotate by creating a file on '/etc/logrotate.d/'
and adding this content:
```
/var/log/syncronize-git-mirror.log {
rotate 5
daily
compress
missingok
notifempty
}
```