Coder Social home page Coder Social logo

laravel-database-export's Introduction

Laravel Database Export ๐Ÿ’พ

GitHub Workflow Status issues forks stars GitHub license

A Laravel console command that allows you to export your database. It supports multiple database connections including MySQL, PostgreSQL, and SQL Server.

Installation

You can install the package via composer:

composer require tomshaw/laravel-database-export

Usage

You can use the command like this:

php artisan db:export

You can also provide a password for the zip file:

php artisan db:export --password=yourpassword

Configuration

The command uses the following configuration keys:

  • database-export.disks.backup_filename: The base filename for the backup.
  • database-export.disks.backup_directory: The directory where the backup files will be stored.

Description

The Database Export command does the following:

  1. Checks if the ZipArchive class is available.
  2. Retrieves the database connection details from the environment variables.
  3. Builds the command to export the database based on the database connection.
  4. Executes the command and saves the output to a file.
  5. Creates a zip file and adds the output file to it.
  6. Deletes the output file.
  7. Prints a success message.

Support

If you have any issues or questions, please open an issue on the GitHub repository.

License

This package is open-source software licensed under the License for more information.

laravel-database-export's People

Contributors

tomshaw avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar  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.