Code Monkey home page Code Monkey logo

laravel-db-backup's People

Contributors

larkinwhitaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

laravel-db-backup's Issues

dev-master requires illuminate/support 5.0.* | 5.1.* -> satisfiable by laravel/framework[v5.1.24, 5.0.x-dev, 5.1.x-dev]

Im getting following error, on Laravel 5.2

Problem 1
- Conclusion: don't install laravel/framework v5.2.3
- Conclusion: don't install laravel/framework v5.2.2
- Conclusion: don't install laravel/framework v5.2.1
- Conclusion: don't install laravel/framework v5.2.0
- Conclusion: don't install laravel/framework v5.2.0-beta1
- witty/laravel-db-backup dev-master requires illuminate/support 5.0.* | 5.1.* -> satisfiable by laravel/framework[v5.1.24, 5.0.x-dev, 5.1.x-dev], illuminate/support[5.0.x-dev, 5.1.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.6, v5.1.8].
- witty/laravel-db-backup dev-master requires illuminate/support 5.0.* | 5.1.* -> satisfiable by laravel/framework[v5.1.24, 5.0.x-dev, 5.1.x-dev], illuminate/support[5.0.x-dev, 5.1.x-dev, v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4, v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.6, v5.1.8].
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support 5.0.x-dev
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support 5.1.x-dev
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.0.0
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.0.22
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.0.25
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.0.26
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.0.28
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.0.33
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.0.4
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.1.1
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.1.13
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.1.16
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.1.2
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.1.20
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.1.22
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.1.25
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.1.6
- don't install laravel/framework 5.2.x-dev|don't install illuminate/support v5.1.8
- Can only install one of: laravel/framework[5.2.x-dev, 5.0.x-dev].
- Can only install one of: laravel/framework[5.2.x-dev, 5.1.x-dev].
- Can only install one of: laravel/framework[5.2.x-dev, v5.1.24].
- Installation request for laravel/framework 5.2.* -> satisfiable by laravel/framework[5.2.x-dev, v5.2.0, v5.2.0-beta1, v5.2.1, v5.2.2, v5.2.3].
- Installation request for witty/laravel-db-backup dev-master -> satisfiable by witty/laravel-db-backup[dev-master].

Not possible to upload dump to S3

When running:
php artisan db:backup --upload-s3 my-bucket

I get the following error message " [BadMethodCallException]
Unknown method: get.
"

Commands/BackupCommand#123
It works fine if I change
$s3 = AWS::get('s3');
to
$s3 = AWS::createClient('s3');

Can't find AWS Facade

Hi Guys,

This use line is throwing an error as my AWS package doesn't have the Laravel namespace:
use Aws\Laravel\AwsFacade as AWS;

I'm using the aws SDK from the laravel docs and have lots of other areas of my site that upload to s3 so fairly sure that's set up correctly.

Anyone no how to fix this without editing the package files?

Add option to purge database before restoring

Please add an option to purge the database before restoring a backup: drop all tables, views, stored procedures etc. but NOT user permissions for the database (i.e. NOT drop database and recreate!).

Rationale: the "backup, migration FAIL, restore" work cycle. Laravel migrations, with their DREADED AND CURSED inability to recover from failures properly, eventually force every laravel programmer to employ some kind of database backup/restore solution so that the database can be backed up before every attempt at artisan migrate and restored when the migration fails due to a stupid coding mistake in the newest migration file. The whole point is to be able to restore the database to the EXACT same state as before the attempted migration. Currently if the migration creates some tables then these tables will still be there after restoring the backup, and a subsequent attempt at migration will fail because those tables already exist. The whole point is to avoid this DREADED AND CURSED scenario.

Can't works via controller code

That package works fine in the terminal with this command php artisan db:back --database=mysql but when i try to execute via the controller code, it doesn't work and this is my code snipped-

 Artisan::call('db:backup',['--database'=>'mysql']);//this is command
    
 return Redirect::back()->with('success','Database backup was successful, 
.SQL file was saved in dump folder.');

I also try with this code but doesn't work

Artisan::call('db:backup',['--database'=>'mysql']);
Artisan::call('db:backup');
Please, anyone, help me out exactly where is the problem?

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.