Giter Club home page Giter Club logo

echobackup's Introduction

EchoBackup

This Bash script manages database backups by utilizing mariadb-dump for backup creation. The script encrypts the backup with AES-256, transfers it to a remote server via FTP, deletes backups older than 7 days, and supports AES decryption.

Features

  • Prompt user for configuration values if they are missing.
  • Load configuration values from a file if it exists.
  • Save configuration values to a file if they don't exist already.
  • Perform a database backup using mariadb-dump.
  • Encrypt the backup file using AES-256.
  • Transfer the encrypted backup file to a remote server using FTP.
  • Delete old backup directories that are older than 7 days.
  • Decrypts a file using AES encryption algorithm

Requirements

  • MariaDB command-line tools (mariadb-dump)
  • OpenSSL (openssl)
  • LFTP (lftp)

Installation

  1. Make sure all the required tools are installed on your system.
  2. Download the backup.sh script to a desired directory.

Usage

  1. Open a terminal and navigate to the directory where the backup.sh script is located.
  2. Run the script with the following command:
./backup.sh

The script will prompt you for configuration values if they are missing and save them to a configuration file (config) for future use.

Decrypt Usage

./decrypt.sh <filename> <decryption_key>
  • <filename>: The name of the encrypted file that needs to be decrypted.
  • <decryption_key>: The key used for decryption.

License

This script is released under the MIT License.

echobackup's People

Contributors

andreigam avatar

Watchers

 avatar

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.