MobileGo is one way to do just that. It enables you to backup all the photos from Samsung Galaxy S7 to computer easily. Once the photos are gone on your phone, you can restore them with one-click.
how to transfer photos from android to computer
how to transfer photos from samsung galaxy to computer