Nethserver rsync migration

ok i figured it out. I was using the -u flag by accident so existing files weren’t being overwritten.

I used the command below for rsync

rsync -aHxvzP --progress --numeric-ids --exclude=/etc/fstab --exclude=/etc/network/* --exclude=/proc/* --exclude=/tmp/* --exclude=/sys/* --exclude=/dev/* --exclude=/mnt/* --exclude=/boot/* --exclude=/root/* root@SRC-IP:/* /

After all files have been copied, run rsync again just to make sure its updated, then do the items below and reboot

After editing /etc/sysconfig/network-scripts, /etc/hosts and running db networks everything works as its supposed to. Shorewall will need to be disabled temporarily while changing these items with shorewall stop and shorewall clear.

Also, would be wise to grep for old IP in /etc folder as some modules hardcode the IP for example docker does.

db networks set eth0 ethernet role green ipaddr YOUR_PUBLIC_IP netmask YOUR_NETMASK network YOUR_NETWORK_ADDR onboot yes bootproto static