Andreas Wachter
5befa164c5
improved gitlab, gitea and gogs organization/group clones
2021-12-14 08:45:13 +01:00
Andreas Wachter
a4580cd4ea
set version to unknown
2021-12-13 12:01:46 +01:00
Andreas Wachter
5a434573a8
switched from panic to fatal
2021-12-13 08:39:38 +01:00
Andreas Wachter
dfe400ecbb
Added logger functionality
2021-12-13 08:15:48 +01:00
Colin Dean
87523e7213
Implements config validation into Conf functions
...
I strangely experienced a crash while saving this initial that corrupted
my local git index and lost the series of commits that brought me to
this state. This feels cleaner than having the functions floating in
main.go but this is the first substantial Go code I've written in
~5 years and I have no idea what I'm doing!
2021-12-12 22:44:40 -05:00
Andreas Wachter
e8e33da6a6
implemented a cron mod
2021-12-12 22:12:47 +01:00
Andreas Wachter
316364b7e7
refactor
2021-12-12 21:49:20 +01:00
Andreas Wachter
5015f4fb73
switched cvs functions to modules
2021-12-12 19:23:55 +01:00
Andreas Wachter
0ea1ba5036
updated version
2021-12-12 13:48:00 +01:00
Andreas Wachter
58577ea619
force pull for gitea and gogs
2021-12-12 13:31:17 +01:00
Andreas Wachter
4d1b9006a3
fixed the nested backup issue
2021-12-12 12:37:27 +01:00
Andreas Wachter
df07675b5e
added --dryrun
2021-12-09 19:24:22 +01:00
Andreas Wachter
ceecb85a71
added version, added exclude organizations
2021-12-03 21:34:46 +01:00
Andreas Wachter
3508c7bc64
upgraded libraries
2021-12-03 10:17:33 +01:00
Andreas Wachter
5d6d075703
start at 1, so we don't have a duplicate of repos
2021-12-03 08:57:04 +01:00
Andreas Wachter
eba517de27
add ssh key if not in known_hosts
2021-12-03 07:34:08 +01:00
Andreas Wachter
64b5570434
added function to exclude repos
2021-12-02 18:43:39 +01:00
Andreas Wachter
0576ed76b5
updated dependencies
2021-10-11 14:33:15 +02:00
Andreas Wachter
4885bf5523
going through every visibility state for groups
2021-10-11 13:46:35 +02:00
Andreas Wachter
e05c5c1c48
added option to backup groups to
2021-09-29 17:29:40 +02:00
Andreas Wachter
950fafe471
upgraded go-git to v5
2021-06-04 11:01:44 +02:00
Andreas Wachter
4fb2d346f6
added bitbucket for the clone #3
2021-06-01 21:43:25 +02:00
Andreas Wachter
bdfb34c120
created better types
2021-06-01 20:04:38 +02:00
Andreas Wachter
0088e0a66c
there are also public repos
2021-06-01 13:14:31 +02:00
Andreas Wachter
1b0a503680
added gopkg.in/src-d/go-git.v4 in order to support ssh and user/password auth
2021-05-31 23:11:45 +02:00
Andreas Wachter
12e5d90877
added proper logging
2021-05-31 11:45:54 +02:00
Andreas Wachter
3b3a3d9f2f
added fetch to the local checkout
2021-05-30 23:40:10 +02:00
Andreas Wachter
e05287ec51
set the default url for gitea in BackupGitea
2021-05-30 23:18:29 +02:00
Andreas Wachter
12547a69d0
init
2021-05-30 23:04:17 +02:00