I have been using the command line on a slave server to synchronize dns files from a master server using the following (there is an ssh key relation between the two):
rsync -e ssh -avz --delete-after user@masterserverIP:/etc/named.conf
rsync -e ssh -avz --delete-after user@masterserverIP:/var/named/* /var/named/
However, after running the above commands, I need to then reload BIND on the slave.
Can anyone point me towards the syntax of how I might do this with a bash script?
I hope this makes sense....
Thanks in advance for any advice.