Currently we use scp to send node config data to all the machines, and therefore also need to delete the old node configs on the machine.
To remove extra files from the destination folder (i.e., make the destination folder an exact replica of the source folder), you should use rsync with the --delete flag.
rsync -av --delete my_folder/ user@remote:/path/to/destination/
Currently we use
scpto send node config data to all the machines, and therefore also need to delete the old node configs on the machine.To remove extra files from the destination folder (i.e., make the destination folder an exact replica of the source folder), you should use rsync with the
--deleteflag.rsync -av --delete my_folder/ user@remote:/path/to/destination/