There&#x27;s a battle tested script that already does this specifically for DigitalOcean and can probably easily be adopted to other environments<p><a href="https:&#x2F;&#x2F;github.com&#x2F;gh2o&#x2F;digitalocean-debian-to-arch" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gh2o&#x2F;digitalocean-debian-to-arch</a>