This is why cloud backup is very important, if you know ahead of time you must leave the country and that this is possible you should back up to icloud or google drive and then wipe your phone, leave contacts on and some things like weather otherwise it will look very suspicious to the border people, but wipe things you care about keeping private, don't use Facebook apps and the like until you get where you are going, then do the process again when leaving the country. This is a hassle and sad that if you want to maintain privacy you must hide your stuff from the Governments of the world, but it's better than them going through your life.
Also, chances are you might not be able to use your phone in whatever country you are going to, do you really need to take it? Perhaps getting a temporary no-frills phone in the host country is better? Here in the US, we can get an AT&T Go Phone for about $100 and it comes with a month of service. I know some newer high-end phones are world capable though.
This is why cloud backup is very important, if you know ahead of time you must leave the country and that this is possible you should back up to icloud or google drive and then wipe your phone, leave contacts on and some things like weather otherwise it will look very suspicious to the border people, but wipe things you care about keeping private, don't use Facebook apps and the like until you get where you are going, then do the process again when leaving the country. This is a hassle and sad that if you want to maintain privacy you must hide your stuff from the Governments of the world, but it's better than them going through your life.
Also, chances are you might not be able to use your phone in whatever country you are going to, do you really need to take it? Perhaps getting a temporary no-frills phone in the host country is better? Here in the US, we can get an AT&T Go Phone for about $100 and it comes with a month of service. I know some newer high-end phones are world capable though.