snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

You can restore the db using `php artisan db:restore yourdumpfilename.sql`. The folders (with uploads etc) just need to be moved manually back to where they belong.

Open Richkos opened this issue 6 years ago • 7 comments

You can restore the db using php artisan db:restore yourdumpfilename.sql. The folders (with uploads etc) just need to be moved manually back to where they belong.

Originally posted by @snipe in https://github.com/snipe/snipe-it/issues/1292#issuecomment-151676293


Hello, I am using snipe-it and we are doing some tests and I used that and got this error, could you help?

php artisan db:restore mysql-snipeit.sql

Command "db:restore" is not defined.

Did you mean one of these? db:seed queue:restart snipeit:restore-users

I extracted the backup .zip created and moved to snipeit folder.

Richkos avatar Sep 22 '20 21:09 Richkos

This instructions appear to be out of date. According to #3617 @snipe says:

We had to change the db backup package we were using, and the new one doesn't offer a restore option. You'll need to use something like mysqimport or PhpMyAdmin to import the old database dump.

tonydew avatar Sep 25 '20 01:09 tonydew

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail. This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

stale[bot] avatar Dec 25 '20 16:12 stale[bot]

This instructions appear to be out of date. According to #3617 @snipe says:

We had to change the db backup package we were using, and the new one doesn't offer a restore option. You'll need to use something like mysqimport or PhpMyAdmin to import the old database dump.

Are there instructions to use mysqlimport or PhpMyAdmin?

ghq55 avatar May 04 '21 18:05 ghq55

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

stale[bot] avatar May 04 '21 18:05 stale[bot]

Docs on those pieces of software are outside the scope of this project, but are fortunately just a google away

snipe avatar May 04 '21 20:05 snipe

Thank you!

On Tue, May 4, 2021 at 4:03 PM snipe @.***> wrote:

Docs on those pieces of software are outside the scope of this project, but are fortunately just a google away

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/snipe/snipe-it/issues/8467#issuecomment-832207217, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK4MBF5AG5O2ISHWUQIQA6DTMBHIJANCNFSM4RWIDJ2Q .

--

Regards,

Greg Quinlan Region 10 Technical High School http://www.r10tech.org/ 68 Church Rd. Brunswick, ME 04011 207-729-6622 x117 www.facebook.com/R10Tech

ghq55 avatar May 04 '21 21:05 ghq55

Can you tell me why there isn't a way to restore a backup from within SnipeIT? Are there plans to add that feature? I love the program, but am having difficulty figuring out the instructions for the 3rd party apps. Thank you for your time!

Regards,

Greg Quinlan Region 10 Technical High School http://www.r10tech.org/ 68 Church Rd. Brunswick, ME 04011 207-729-6622 x117 www.facebook.com/R10Tech

On Tue, May 4, 2021 at 4:03 PM snipe @.***> wrote:

Docs on those pieces of software are outside the scope of this project, but are fortunately just a google away

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/snipe/snipe-it/issues/8467#issuecomment-832207217, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK4MBF5AG5O2ISHWUQIQA6DTMBHIJANCNFSM4RWIDJ2Q .

ghq55 avatar May 05 '21 12:05 ghq55