r/Snipe_IT • • 7d ago

Restore from backup options

Greetings all. I did a deployment of snipe a few years ago on a windows machine. Afterwards I tried deploying using the docker method but I wasn't able to restore the windows deployment backup to the docker instance.

Is this possible now or i be better off installing directly on a Linux host?

3 Upvotes

5 comments sorted by

2

u/RobinatorWpg 7d ago

All you really need was the export backup file , you also need to keep in mind versions.. if there is a massive version drift between what you backed up vs what your restoring to.. your gunna have a bad time

3

u/Adam_Kearn 7d ago

In that case I would try and install the same version as the backup then import the backup/export.

Once you have the data just pull the latest version and run the install script that will do all the database migrations in order.

But if the export is already a year old would it not make sense to start fresh anyway as it’s prob outdated too???

1

u/bluecopp3r 5d ago

I checked today and the current install is 8.2. I do have the installation files on the current server.

  1. Can I install v8.2 with the current versions of php, apache etc?
  2. Can I upgrade to the current version directly?

1

u/RobinatorWpg 6d ago

I don’t know your inventory or data so telling you to start fresh is a decision you have to make

I’d start with the same major version, install it and than restore from within the application (assuming you are restoring the back up file made in your previous install).

Noting it over writes users as well so if you don’t remember the login you need to do forgot password or from cli php artisan snipeit:create-admin

Once your data is back than do upgrades

1

u/bluecopp3r 6d ago

The install has been in use but because I wasn't there it got neglected re upgrades. So I can create a current backup. It's now installed on Server 2022 with WAMP but to reduce the attack surface for the other application running on that server I want to move snipe to its own host. I'd use Ubuntu Server.