snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.2k stars 3.2k forks source link

Unlinked Images Checker would be a nice feature #8898

Open tomck opened 3 years ago

tomck commented 3 years ago

Server (please complete the following information):

Is your feature request related to a problem? Please describe. Yes. I misunderstood a line on StackOverflow and wiped out all my files with a git clean, including my image uploads and my .env. I had an old (5 months) backup which contained a working .env and some asset model images, but not all. This means some files can't be located, and while I definitely have all the files still because I never clean my files, I can't easily hit a button to have the system run through all the references and see which files actually exist and which don't.

Describe the solution you'd like Kind of like a web spider that checks the existence of the files referenced in the database.

Describe alternatives you've considered Going through and looking at all the asset models and seeing what doesn't have pics, but that won't catch the assets themselves, etc.

Additional context I'm a dummy and I feel dumb. Also I got some e-mails about the backup failing when the upgrade.php tried the auto backup, so that was something that I feel should have been a die();. If the auto backup 'temporarily' stored the backup zip file in the /tmp/ dir, I would have been able to dig in there after I realized my mistake. Plus writing there unexpectedly isn't evil, because it's temporary.

welcome[bot] commented 3 years ago

πŸ‘‹ Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.