copy only changed or new files from a local directory to ssh host
The local directory is "www" and also in ssh there is the same directory called "www".
It is thinked for rsync Magento files from local to remote host.
1- Put this script in the home directory, one directory before the "www" folder.
2- If you want to syncronize other directories change lines 15 and 16.
3- To put your SSH credentials change lines 31 and 32.
Execute from shell:
./copy-files.sh daysback filename.txt
es. ./copy-files.sh 30 logfile.txt
this get all files modified in last 30 days in a directory and save the list in "logfile.txt"