I need a quick script using rsync to do the following:
1. Copy selected directories from server A to Server B
2. The script should only copy newer files, not the entire directory, so it needs to compare before writing .
3. There should be a way to exclude directories or files
4. The script should write a log each day that it runs with a unique name + date so we know what was written from A to B
Destination: root@[login to view URL]:/var/www/html2
You can use any existing script out there and make sure we can fit these requirements. I will set up a cron job and have this run daily.