Skip to content

Commit

Permalink
feat: add mysql backup tool
Browse files Browse the repository at this point in the history
  • Loading branch information
alomerry committed Apr 30, 2024
1 parent 15b3b4d commit 5e36f14
Show file tree
Hide file tree
Showing 28 changed files with 334 additions and 872 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ go-tools contains several tools

## Usage

- [DB backup](utils/db/dump.go)
- [DNS](modules/dns/README.md)
- [pusher](./pusher/README.md)
- [sgs delay](./sgs/README.md)
- [copier](modules/copier/README.md)
- algorithm

## Copier
Expand Down
22 changes: 14 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,47 @@ go 1.21
require (
github.com/emirpasic/gods v1.18.1
github.com/google/martian v2.1.0+incompatible
github.com/pkg/errors v0.9.1
github.com/qiniu/go-sdk/v7 v7.17.1
github.com/magiconair/properties v1.8.7
github.com/spf13/cast v1.5.1
github.com/spf13/cobra v1.7.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.16.0
github.com/stretchr/testify v1.8.4
github.com/tealeg/xlsx/v3 v3.3.0
golang.org/x/net v0.17.0
github.com/tickstep/aliyunpan-api v0.2.1
gorm.io/driver/mysql v1.5.6
gorm.io/gorm v1.25.10
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/frankban/quicktest v1.14.5 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-sql-driver/mysql v1.7.0 // indirect
github.com/google/btree v1.0.0 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/peterbourgon/diskv/v3 v3.0.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rogpeppe/fastuuid v1.2.0 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/satori/go.uuid v1.2.0 // indirect
github.com/shabbyrobe/xmlwriter v0.0.0-20200208144257-9fca06d00ffa // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
golang.org/x/sync v0.1.0 // indirect
github.com/tickstep/library-go v0.1.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
108 changes: 66 additions & 42 deletions go.sum

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions main.go

This file was deleted.

60 changes: 0 additions & 60 deletions modules/pusher/README_ZH.md

This file was deleted.

115 changes: 0 additions & 115 deletions modules/pusher/component/oss/kodo/kodo.go

This file was deleted.

6 changes: 0 additions & 6 deletions modules/pusher/component/oss/kodo/request.go

This file was deleted.

65 changes: 0 additions & 65 deletions modules/pusher/component/oss/oss.go

This file was deleted.

29 changes: 0 additions & 29 deletions modules/pusher/config/example.toml

This file was deleted.

25 changes: 0 additions & 25 deletions modules/pusher/main.go

This file was deleted.

Loading

0 comments on commit 5e36f14

Please sign in to comment.