https://github.com/tbxark-arc/dumpdb2qiniu
Automatically backup the database to Qiniu
https://github.com/tbxark-arc/dumpdb2qiniu
database database-backup mysql mysqldump mysqldump-backup
Last synced: 2 months ago
JSON representation
Automatically backup the database to Qiniu
- Host: GitHub
- URL: https://github.com/tbxark-arc/dumpdb2qiniu
- Owner: tbxark-arc
- License: mit
- Created: 2024-04-10T07:23:37.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-17T11:13:52.000Z (8 months ago)
- Last Synced: 2025-01-19T21:43:22.898Z (4 months ago)
- Topics: database, database-backup, mysql, mysqldump, mysqldump-backup
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dumpdb2qiniu
**dumpdb2qiniu** is a tool that automatically backs up databases to Qiniu Cloud. It currently supports backing up all databases that can be backed up using mysqldump.
## Installation
### Manual Build
```bash
go install github.com/TBXark/dumpdb2qiniu@latest
```### Docker
```bash
docker run -d --name dumpdb2qiniu -v /path/to/config.json:/config.json ghcr.io/tbxark/dumpdb2qiniu:latest
```## Usage
```bash
dumpdb2qiniu -config /path/to/config.json
```## Configuration
```json5
{
"databases": [
{
"host": "localhost",
"user": "root",
"password": "....",
"database": "dbname"
}
], // Multiple databases are supported
"qiniu": {
"access_key": "-e",
"secret_key": "",
"bucket": "sqldump", // For security, please use a private bucket
"file_prefix": "backup/serverA/"
},
"cron": "" // Cron expression for scheduled execution
}
```## License
**dumpdb2qiniu** is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more details.