Restore from Backup File

❗️

NOTE:

This command is intended for official Snipe-IT generated backups ONLY. If you are trying to restore from a manually generated database and filesystem backups (using PHPMyAdmin, mysqldump, etc), this command will not work unless you recreate the structure of the zip file that Snipe-IT generates.

If you have a previously generated Snipe-IT backup file that you'd like to restore back to (for example, if you did a backup right before a big LDAP sync, and you realized the sync wasn't configured correctly and you need to roll that back), you can use the command-line utility to restore it to a known good state:

php artisan snipeit:restore /full/path/to/your/backup.zip

There are a few additional optional parameters you can also use:

php artisan snipeit:restore /full/path/to/your/backup.zip --force

This will force the restore without asking you to confirm by typing Yes after the prompt.

php artisan snipeit:restore /full/path/to/your/backup.zip --no-progress

This will hide the progress bar in the terminal.


Did this page help you?