Commit Graph
326 Commits
Author SHA1 Message Date
Andreas Wachter 6a293dd625 implemented mirror using gickup and not giteas mirror function (#225)
* implemented mirror using gickup and not giteas mirror function

* added "mirror" to gogs

* push to gogs

* mirror is now a struct

* move deprecation notice, no need to spam
2024-04-15 07:10:49 +02:00
Andreas Wachter 61d5070f50 fixed some backup path issues and reload issues (#220)
* fixed some backup path issues and reload issues

* removed all chdirs
2024-04-04 07:31:28 +02:00
Andreas Wachter 54feabae23 check if config is null (#223) 2024-04-03 16:32:55 +02:00
Andreas Wachter bf58b23155 configure a user to clone to. for structured cloning (#219) 2024-04-03 08:24:23 +02:00
black-backdoor 95336a896d update README.md (#221) 2024-04-02 17:24:18 +02:00
Andreas Wachter 57097ff8a0 Check gitea interval (#216)
* added checks on mirrorinterval

* switched to sublogger
2024-04-02 13:01:51 +02:00
Andreas Wachter 34c4e3dd9c / on wrong position (#218) 2024-04-02 13:01:28 +02:00
dependabot[bot] 7175ab6d17 Bump google.golang.org/protobuf from 1.32.0 to 1.33.0 (#214)
Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 09:01:49 +01:00
Andreas Wachter ac9fae45ca updated modules (#212) v0.10.28 2024-02-27 09:09:13 +01:00
Andreas Wachter dca5a55a8a add cron to all files if necessary (#211) 2024-02-27 07:01:04 +01:00
Andreas Wachter 8de9d0f16f added git lfs for mirrors (#204)
* added git lfs for mirrors

* added openssh-client to ubuntu image

* working push on all branches

* fetch after clone and before pull to get all branches

* checkout all branches is not needed

* fix fetch
v0.10.27
2024-02-19 08:42:35 +01:00
Andreas Wachter 76bcf763aa Issue 200 (#203)
* force fetch

* do not fetch

* log push

* log clone too
2024-01-29 12:31:36 +01:00
Andreas Wachter 4f6317326a authorize during fetch (#202) 2024-01-25 16:31:47 +01:00
Andreas Wachter acbb331450 get gitlab user (#201) 2024-01-25 07:40:36 +01:00
Andreas Wachter d1568d4545 Reload config (#199)
* reload on config changes

* handle prometheus metrics

* compare config structs

* create seperate object for logging
2024-01-09 14:43:51 +01:00
Andreas Wachter a70f9c939f Revert "Reload config (#196)" (#198)
This reverts commit 61cac5dda6.
2024-01-09 14:33:28 +01:00
dependabot[bot] a2f522ec7d Bump github.com/cloudflare/circl from 1.3.6 to 1.3.7 (#197)
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.3.6 to 1.3.7.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.3.6...v1.3.7)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-09 09:44:32 +01:00
Andreas Wachter 61cac5dda6 Reload config (#196)
* reload on config changes

* handle prometheus metrics

* compare config structs
2024-01-04 12:54:12 +01:00
Andreas Wachter 46317e71c9 Issue 191 (#192)
* change fatal to warning

* remove directory if not repository

* added error message to warning

* add error around directory removal

* remove repo if initial clone goes wrong
v0.10.26
2024-01-03 09:15:34 +01:00
Andreas Wachter 477657da67 updated modules (#195) 2023-12-31 11:16:59 +01:00
dependabot[bot] 292086e013 Bump github.com/go-git/go-git/v5 from 5.9.0 to 5.11.0 (#193)
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.9.0 to 5.11.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.9.0...v5.11.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v0.10.25
2023-12-27 18:19:55 +01:00
dependabot[bot] 470cd01363 Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#190)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v0.10.24
2023-12-19 08:08:59 +01:00
Andreas Wachter a78d73f5de fix relative path for issues (#189) 2023-12-04 13:24:18 +01:00
Andreas Wachter ccb0c5850d fix path for clone (#187) v0.10.23 2023-12-03 14:56:01 +01:00
Andreas Wachter 52a834b42b backup issues from github (#185)
* backup issues from github

* gitlab issues

* added gitea

* added gogs

* added onedev

* updated examples

* added more documentation
2023-12-01 07:58:53 +01:00
Andreas Wachter a7f72fc9ce use ubuntu docker file v0.10.22 2023-10-30 07:29:34 +01:00
dependabot[bot] 633483a275 Bump golang.org/x/net from 0.15.0 to 0.17.0 (#179)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-12 07:58:46 +02:00
Andreas Wachter 27cbf30d35 exclude tagalign v0.10.21 2023-10-04 12:16:54 +02:00
Andreas Wachter fecb4040e6 added sublogger to gitea (#178)
* added sublogger to gitea

* implemented the rest of the subloggers
2023-10-04 10:55:24 +02:00
Andreas Wachter f03be6607f Gitea lfs (#177)
* variable mirror interval

* added LFS switch for gitea
2023-10-04 08:09:42 +02:00
Andreas Wachter d2460324d8 variable mirror interval (#176) 2023-10-04 07:44:40 +02:00
Andreas Wachter e530b8b3df updated archiver (#175) 2023-10-03 15:53:43 +02:00
Andreas Wachter 604d18d4ab added interval (#174) 2023-10-03 08:25:40 +02:00
Andreas Wachter 082821bfb9 added force push (#172) v0.10.20 2023-09-29 17:10:06 +02:00
Andreas Wachter 77024fb0a5 implemented backup to organization (#169)
* implemented backup to organization

* go mod tidy

* update lint
v0.10.19
2023-09-29 12:26:03 +02:00
Andreas Wachter 636b09bb16 Update README.md
added Homebrew
2023-09-07 10:15:54 +02:00
Andreas Wachter 03bfdc197d update example and readme v0.10.18 2023-08-17 08:32:45 +02:00
Andreas Wachter 4fac8115ff Error on second push (#166)
* there is an error on second push if the repo has only one branch

* fixed fetch error message
2023-08-17 08:06:10 +02:00
Andreas Wachter f8ad43bb29 Multiple branches (#165)
* added github mirror functionality

* create temporary directory to clone into

* added onedev as destination

* added sourcehut

* add new examples

* added push of all branches, autocreation of repos on sourcehut

* push everything

* sourcehut visibility fix
2023-08-16 14:04:59 +02:00
Andreas Wachter f468f48ba1 mirror functions (#164)
* added github mirror functionality

* create temporary directory to clone into

* added onedev as destination

* added sourcehut

* add new examples
2023-08-15 18:13:21 +02:00
Andreas Wachter beae85c182 implemented git lfs (#160)
* implemented git lfs

* removed arm/v6 from docker builds

* add lfs to example
2023-07-18 10:56:43 +02:00
Matthew Toohey 616e2d6a31 Bump Go version in go.mod to 1.17 (#156) v0.10.16-1 v0.10.17 2023-06-04 20:49:10 +02:00
Andreas Wachter 64a67254e6 implemented exclude forks (#155) v0.10.16 2023-06-04 08:30:02 +02:00
dependabot[bot] 2bc4aa432a Bump github.com/cloudflare/circl from 1.3.2 to 1.3.3 (#150)
Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.3.2 to 1.3.3.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.3.2...v1.3.3)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-02 16:17:21 +02:00
Andreas Wachter 2e75d80540 Push notification not on all runs (#152)
* added gotify and ntfy to notify

* added new example config

* use push config in all configs
2023-05-16 09:39:46 +02:00
Seow Alex 25288d6df2 Fix Gogs repository visibility (#149) v0.10.15 2023-05-02 17:17:30 +02:00
Andreas Wachter fae97c289b Push (#148)
* added gotify and ntfy to notify

* added new example config
2023-05-02 16:43:55 +02:00
Andreas Wachter b2da20028e added gotify and ntfy to notify (#147) 2023-05-02 16:40:56 +02:00
Seow Alex d622367738 Backup description and visibility (#146) 2023-04-23 21:11:12 +02:00
Andreas Wachter 80529e1999 build release for arm64/v8 v0.10.14 2023-03-03 07:28:44 +01:00