Dealing with IP address changes when restore from backup or snapshot
I would like to create a 'production' environment that hosts a few of my websites. This would involve creating a droplet and configuring apache/nginx, bind/dns, mysql, exim/dovecot, vsftpd, etc. I would then take a snapshot/backup of the droplet to use as a failover. Since there is no guarantee you will get the same IP address when scaling or creating a new droplet from a previous snapshot, I wanted to know the best method to deal with the IP change. Would something simple like find/replace using grep or another utility from the command line work, or would it require a more complex solution?