How can i keep my data if my iphone is disabled ?

My iphone 6 plus has been dead for the past 4 months and now that it worked again, i forgot my password. i've tried several pass codes and then they told me i should try again in about 1060 mintues
do u have any idea how many times can i try the pass code when that time has passed without losing my data?
Your data is still on the device and possibly in the cloud, depending on how your device is configured. If you cannot remember your lockscreen passcode, you can connect your iPhone to your computer and then restore it via iTunes. Yes, you will lose everything. There is no other way except to remember the passcode.
If you set it up in the settings, it's 10 times before the phone is erased.

Here is a guide just in case you need it: https://support.apple.com/en-us/HT204306

Original thread: https://forums.imore.com/threads/how-can-i-keep-my-data-if-my-iphone-is-disabled.359354/