Giter Site home page Giter Site logo

backup-cli's Introduction

Backup CLI

Straightforward command line interface for downloading backup snapshots of MySQL Databases and Application File Systems written in Rust Programming Language.

Overview

Design

The "Backup CLI" aims to bridge compatibility issues that stem from connecting clients and servers. This project was inspired by a philosophical concern, MySQL clients often face limited support when interfacing with remote MySQL servers that are on different versions. To combat this all the backup tasks are executed using native Unix commands, with backup files transported via SFTP.

Host Client Requirements

SSH private key should be present within the default directory /home/{user}/.ssh.

Remote Server Requirements

The client's openssh public key should be authorized by the user. Zip package should be installed for archiving files before transporting via network.

Installation & Usage (Unix-based Systems)

Download one of the pre-built binaries found in https://github.com/BlazeIsClone/backup-cli/releases/

Move the binary to /usr/local/bin (Unix-based Systems):

sudo mv backup-cli /usr/local/bin/

Make the binary executable:

sudo chmod +x /usr/local/bin/backup-cli

Verify installation & usage:

backup-cli

Building From Source

In case you want to compile this yourself, you need to install at minimum the following dependencies:

  • Rust stable and Cargo
  • Make, CMake and a C compiler

Download the source code:

git clone https://github.com/BlazeIsClone/backup-cli.git

Build (change working directory to /path/to/backup-cli):

cargo build --release

The compiled output should be inside /path/to/backup-cli/target/release.

backup-cli's People

Contributors

blazeisclone avatar

Stargazers

 avatar

Watchers

 avatar

backup-cli's Issues

Implement MySQL Database Dump

Command Example

mysqldump \
--quick \
--single-transaction \
--host=localhost \
--port=3306 \
--user={MYSQL_USER} \
--password={MYSQL_PASS} \
--databases {iMYSQL_DATABASE} > $TMP_DIR/$TIMESTAMP-mysql.sql

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.