This guide explains how to restore a previous backup of your iPhone, without updating it to the latest iOS version in the process.
Steps
Method 1 of 3: Use Recovery Mode (iPhone 7)

Step 1. Connect your iPhone to the computer
To do this, connect the USB end of the phone's power cable to the computer port and the Lightning end to the iPhone.

Step 2. Launch iTunes
The icon for this program is white, with a colored musical note.
- If you've turned on automatic syncing with iTunes, the program will open by itself when you plug in your phone.
- If iTunes is already open when you connect your phone to your computer, close the program, then open it again.

Step 3. Click on the phone icon
You will see this iPhone shaped button at the top left of the iTunes window.

Step 4. Click Back up now
This button is located under the heading "Manual Backup and Restore", in the "Backup" section.
This takes a few minutes

Step 5. Turn off the iPhone
To do this, press and hold the lock button on the right side of the phone, then slide the button to the right slide to turn off that appears on the screen.

Step 6. Press and hold the lock button for 3 seconds
At the end of the 3 seconds, do not release the button.

Step 7. Start pressing the Volume Down button as well
You will need to hold both buttons for the next 10 seconds.
To do this correctly, you will need to hold down the lock button for 13 seconds in total

Step 8. Release the lock button at the end of the 10 seconds
You need to keep holding the Volume Down button until you see a window appear in iTunes - it will inform you that a device in recovery mode has been detected.

Step 9. Click on Restore iPhone to Computer
It should appear in an options window within iTunes. Press the button to choose a restore date.

Step 10. Click on the field next to "iPhone Name"
This option will appear in a new window. You will see some of your most recent backups, including the one made today, listed in a drop-down menu.

Step 11. Click on a backup, then click Restore
In this way, you restore your iPhone without updating it to the latest iOS version.
Method 2 of 3: Use Recovery Mode (iPhone 6S and Earlier)

Step 1. Connect the iPhone to your computer
To do this, plug the USB end of the phone cable into the USB port on your computer and the power end into the bottom of the phone.

Step 2. Open iTunes
The icon of this app is white, with a colored musical note.
- If you've turned on automatic syncing with iTunes, the program will open by itself when you connect your phone to your computer.
- If iTunes is already open when you connect the iPhone to the computer, close it and open it again.

Step 3. Click on the phone icon
You will see this iPhone shaped button at the top left of the iTunes window.

Step 4. Click Back up now
You will find this button under the heading "Manual Backup and Restore", within the "Backup" section.
This takes a few minutes

Step 5. Disconnect iPhone from iTunes
You will reconnect it shortly, so avoid closing the program.

Step 6. Turn off the iPhone
To do this, press and hold the lock button located on the right side of the phone (iPhone 6 and later) or at the top (iPhone 5 and earlier), then slide the button to the right slide to turn off that appears on the screen.

Step 7. Press and hold the iPhone Home button
This is the circular button at the bottom. As soon as you start pressing it, go to the next step.

Step 8. Reconnect the iPhone to the computer
You have to do this while holding the Home button.
This does not always work. If you see the lock screen appear, turn off your phone and try again

Step 9. Release the Home button when you see the iTunes logo appear
The logo will appear on the iPhone screen after the Apple one. Below the logo, you should see an image of a power cable.

Step 10. Click Restore iPhone on Computer
This button should appear in an options window within iTunes. Press it to choose a restore date.

Step 11. Click on the field next to "iPhone Name"
This option will appear in a new window. You will see some of your most recent backups, including the one made today, listed in a drop-down menu.

Step 12. Click on a backup, then click Restore
In this way, you restore your iPhone without updating it to the latest iOS version.
Method 3 of 3: Using Cydia on a Jailbroken iPhone

Step 1. Back up your important data
Make sure you have a copy of the files you don't want to lose, because the following operation deletes all the data contained within the iPhone (but allows you to keep the jailbreak and the current iOS version).
You won't be able to use iTunes backups, because that way you would lose the jailbreak

Step 2. Open Cydia on your jailbroken iPhone
If you have a modified phone, following the first method the iPhone will keep restarting indefinitely.

Step 3. Click on Sources
The repositories from which Cydia fetches packages will appear.

Step 4. Click on Edit, then on Add
This way, you can insert a new repository.

Step 5. Type the address of the new Cydia repository
Enter the following URL in the text field that appears after pressing Add:
https://cydia.myrepospace.com/ilexinfo/

Step 6. Click on Add Source
This will add the repository you typed to the Cydia source list.

Step 7. Search for "iLEX RAT" on Cydia
Various search results will appear.

Step 8. Press the iLEX R. A. T
Make sure the option you choose is written exactly as indicated.

Step 9. Click on Install, then on Confirm
In this way, you start the installation of the iLEX R. A. T.package.

Step 10. Launch the iLEX R. A. T
from the Home screen.
The icon you are looking for has a mouse on a yellow background. Press it and you will see various options appear.

Step 11. Click on iLEX RESTORE, then click Confirm
In this way, you start the custom recovery process. All your data will be erased and the firmware will be restored. Thanks to this type of reset, you will not lose the jailbreak and you will not be forced to install the latest version of iOS.