Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fluffynuts/mysql-clone
Quick-n-dirty method to clone a mysql database
https://github.com/fluffynuts/mysql-clone
Last synced: 5 days ago
JSON representation
Quick-n-dirty method to clone a mysql database
- Host: GitHub
- URL: https://github.com/fluffynuts/mysql-clone
- Owner: fluffynuts
- Created: 2021-10-04T13:23:09.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-08T09:34:25.000Z (about 1 year ago)
- Last Synced: 2024-11-17T05:56:38.645Z (about 2 months ago)
- Language: C#
- Size: 517 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MySQL-Clone
---A simple .net CLI utility to clone a mysql database
Quick usage
---
```
npm ci
```_ask the tool how to use it:_
```
npm start -- --help
```_run interactively: answer some questions and get a cloned database:_
```
npm run interactive
```_run like an expert:_
```
npm start -- -h source-host -u source-user -p source-password -d source-database -H target-host -U target-user -P target-password -D target database
```Build
---
If you have dotnet core 5 and node installed, you should be able to:
```
npm ci
npm run build
```to produce binaries in the `bin` folder. Alternatively, use the binaries that are checked in,
if you trust me. Or build with your IDE of choice (VS, Rider, etc)Usage
---
Run `mysql-clone.exe` with `--help` for all options or with `-i` for a guided interactive sessionWhy
---
I wanted to automate away the steps of cloning a mysql database using `mysqldump` and `mysql`,
including the ability to run a clean-up script after restoration completes.