You can use Bacula ReaR BMR to quickly, easily and safely perform server migrations.
Prepare source server:
Step one: prepare server
Define new IP address:
echo eth0 192.268.1.100/24 >/etc/rear/mappings/ip_addresses
Define new route (optional - if route is the same, you can skip this)
echo default 192.168.1.1 eth0 >/etc/rear/mappings/routes
replace 192.268.1.100 with your new IP and 192.168.1.1 with your new gateway. Do not forget to delete /etc/rear/mappings/ip_addresses and /etc/rear/mappings/routes after migration.
Alternate method to redefine network settings is to interrupt the automatic boot process and select extra kernel options:
ip=192.268.1.100 nm=255.255.255.0 gw=192.168.1.1 netdev=eth0
Step two: perform new backup (incremental or full as required and will be automatically set regardless of what is chosen)
Step there: restore server using Bacula4 ReaR BMROnce a fresh backup is completed, follow Bacula4 ReaR BMR instructions HERE:
When you reach the "check server status" section, an additional step is required - Please enter new server IP:
Set the new IP of the destination server and click try again button. After confirming communication and access (red light turns green), you'll be able to continue the restore process and resulting in a copy of your server and a successful migration