Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--connection param isnt working? #23

Closed
shez1983 opened this issue Aug 22, 2023 · 3 comments
Closed

--connection param isnt working? #23

shez1983 opened this issue Aug 22, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@shez1983
Copy link

so i have two db configs keys one is mysql, one is restore-db. i am using spatie to do a backup of mysql and then using this package to db defined in restore-db key.

when i run this command LOCALLY it SEEMS to be working fine.

artisan backup:restore --disk=s3 --backup=latest --no-interaction --connection=restore-db

but on staging what it is doing is IGNORING restore-db, and restoring to db defined in mysql..

@stefanzweifel stefanzweifel added the bug Something isn't working label Aug 22, 2023
@stefanzweifel
Copy link
Owner

Have to do some digging here. Maybe that's related to #22 and we somehow mix up connection and driver.

@stefanzweifel
Copy link
Owner

I'm not able to reproduce this issue.

In #20 we've updated the command to show the exact connection information in the confirmation dialog.
We have tests that assert that the right connection is used and shown to the user.

By using --no-interaction Laravel/the command doesn't ask for confirmation and just proceeds with restoring the backup. Could you share the output you receive when running the command without ---no-interaction?

php artisan backup:restore --disk=s3 --backup=latest --connection=restore-db

@stefanzweifel
Copy link
Owner

Closing this issue as I'm not able to reproduce this issue.
Feel free to add a comment with more details if you still encounter this issue.

@stefanzweifel stefanzweifel closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants