You make a good point, I'm surprised to see it downvoted.
It's always a risk to put IP in a bucket you may lose access to just because of politics.
It's always a risk to put IP in a bucket you may lose access to just because of politics.
That applies to everyone, not just Iranian developers: setup daily backups of all your code.
Proper backups of all repos are an answer, of course.