Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permit repo mirroring synchro on exact hour #18175

Open
abennani31 opened this issue Jan 4, 2022 · 1 comment
Open

Permit repo mirroring synchro on exact hour #18175

abennani31 opened this issue Jan 4, 2022 · 1 comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@abennani31
Copy link

Feature Description

Actually, it is only possible de set repo mirroring synchro on time interval. For example if mirror interval is equal to 8 hours, the synchro can be launched between 08h am and 5pm and this is not possible for us because gitea will be used on production environment.

Can you make it possible to launch synchro by using cron mecanism:

Example of job definition:

.---------------- minute (0 - 59)

| .------------- hour (0 - 23)

| | .---------- day of month (1 - 31)

| | | .------- month (1 - 12) OR jan,feb,mar,apr ...

| | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat

| | | | |

* * * * *

Example:
00 06 * * *
This example of configuration have to launch synchro at 6am every day.
Regards,

Screenshots

No response

@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Jan 12, 2022
@zeripath
Copy link
Contributor

zeripath commented Jan 15, 2022

Have you looked at the Cron job?

In particular:

https://docs.gitea.io/en-us/config-cheat-sheet/#cron---update-mirrors-cronupdate_mirrors

This is what is causing the updates.

If you set this so that it doesn't run in work hours then you're done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

3 participants