The rules really depend on the country and vary a lot. But in general, you only pay tax on the money you spend/remit in the country. For Cyprus, you only pay tax on income accrueing or arising in Cyprus. For Ireland, you can remit all money you made prior to become a tax resirent. Malta also taxes capital gains from Maltese source. The UK one will probably be cancelled soon.