Crates.io | rust_mysqldump |
lib.rs | rust_mysqldump |
version | 0.1.1 |
source | src |
created_at | 2023-11-27 23:30:36.587413 |
updated_at | 2023-11-30 01:31:39.250344 |
description | A command-line application for quickly backing up your MySQL databases. |
homepage | https://github.com/tomshaw/rust-mysqldump |
repository | https://github.com/tomshaw/rust-mysqldump |
max_upload_size | |
id | 1051416 |
size | 67,743 |
Rust MySQL Dump is a command-line application for quickly backing up your MySQL databases. It supports exporting multiple databases in a single operation, runs asynchronously and is extremely fast. Outputs export information as each operation completes. Tested on moderate to large size databases without any problems.
Set the following environment variables:
DB_HOST
: The hostname of your MySQL server.DB_PORT
: The port number of your MySQL server.DB_USERNAME
: The username to use when connecting to your MySQL server.DB_PASSWORD
: The password to use when connecting to your MySQL server.DB_EXPORTS
: A comma-separated list of databases to backup. Use *
to backup all databases.DB_FORGETS
: A comma-separated list of databases to exclude from the backup.Run the application:
cargo run
This utility depends on the following Rust crates:
mysql
: To connect to the MySQL server and retrieve the list of databases.cli-table
: To print the list of databases in a neat table.colored
: To colorize the output to the terminal.dotenv
: To load the database configuration from environment variables.serde
: To deserialize the database configuration.Contributions are welcome! Please submit a pull request or create an issue on GitHub.
The MIT License (MIT). See License File for more information.