Skip to content

Commit 5e36f14

Browse files
committed
feat: add mysql backup tool
1 parent 15b3b4d commit 5e36f14

28 files changed

+334
-872
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ go-tools contains several tools
1414

1515
## Usage
1616

17+
- [DB backup](utils/db/dump.go)
1718
- [DNS](modules/dns/README.md)
1819
- [pusher](./pusher/README.md)
1920
- [sgs delay](./sgs/README.md)
20-
- [copier](modules/copier/README.md)
2121
- algorithm
2222

2323
## Copier

go.mod

+14-8
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,47 @@ go 1.21
55
require (
66
github.com/emirpasic/gods v1.18.1
77
github.com/google/martian v2.1.0+incompatible
8-
github.com/pkg/errors v0.9.1
9-
github.com/qiniu/go-sdk/v7 v7.17.1
8+
github.com/magiconair/properties v1.8.7
109
github.com/spf13/cast v1.5.1
11-
github.com/spf13/cobra v1.7.0
12-
github.com/spf13/pflag v1.0.5
1310
github.com/spf13/viper v1.16.0
1411
github.com/stretchr/testify v1.8.4
1512
github.com/tealeg/xlsx/v3 v3.3.0
16-
golang.org/x/net v0.17.0
13+
github.com/tickstep/aliyunpan-api v0.2.1
14+
gorm.io/driver/mysql v1.5.6
15+
gorm.io/gorm v1.25.10
1716
)
1817

1918
require (
2019
github.com/davecgh/go-spew v1.1.1 // indirect
2120
github.com/frankban/quicktest v1.14.5 // indirect
2221
github.com/fsnotify/fsnotify v1.6.0 // indirect
22+
github.com/go-sql-driver/mysql v1.7.0 // indirect
2323
github.com/google/btree v1.0.0 // indirect
2424
github.com/google/go-cmp v0.5.9 // indirect
2525
github.com/hashicorp/hcl v1.0.0 // indirect
26-
github.com/inconshreveable/mousetrap v1.1.0 // indirect
26+
github.com/jinzhu/inflection v1.0.0 // indirect
27+
github.com/jinzhu/now v1.1.5 // indirect
28+
github.com/json-iterator/go v1.1.12 // indirect
2729
github.com/kr/pretty v0.3.1 // indirect
2830
github.com/kr/text v0.2.0 // indirect
29-
github.com/magiconair/properties v1.8.7 // indirect
3031
github.com/mitchellh/mapstructure v1.5.0 // indirect
32+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
33+
github.com/modern-go/reflect2 v1.0.2 // indirect
3134
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
3235
github.com/peterbourgon/diskv/v3 v3.0.1 // indirect
3336
github.com/pmezard/go-difflib v1.0.0 // indirect
3437
github.com/rogpeppe/fastuuid v1.2.0 // indirect
3538
github.com/rogpeppe/go-internal v1.9.0 // indirect
39+
github.com/satori/go.uuid v1.2.0 // indirect
3640
github.com/shabbyrobe/xmlwriter v0.0.0-20200208144257-9fca06d00ffa // indirect
3741
github.com/spf13/afero v1.9.5 // indirect
3842
github.com/spf13/jwalterweatherman v1.1.0 // indirect
43+
github.com/spf13/pflag v1.0.5 // indirect
3944
github.com/subosito/gotenv v1.4.2 // indirect
40-
golang.org/x/sync v0.1.0 // indirect
45+
github.com/tickstep/library-go v0.1.0 // indirect
4146
golang.org/x/sys v0.13.0 // indirect
4247
golang.org/x/text v0.13.0 // indirect
48+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
4349
gopkg.in/ini.v1 v1.67.0 // indirect
4450
gopkg.in/yaml.v3 v3.0.1 // indirect
4551
)

go.sum

+66-42
Large diffs are not rendered by default.

main.go

-7
This file was deleted.

modules/pusher/README_ZH.md

-60
This file was deleted.

modules/pusher/component/oss/kodo/kodo.go

-115
This file was deleted.

modules/pusher/component/oss/kodo/request.go

-6
This file was deleted.

modules/pusher/component/oss/oss.go

-65
This file was deleted.

modules/pusher/config/example.toml

-29
This file was deleted.

modules/pusher/main.go

-25
This file was deleted.

0 commit comments

Comments
 (0)