I have a rsync command as follows in a expect script
My question is.
spawn rsync -a -r -z -v -h -p -i --log-file=/path/rsync.log --progress --delete-excluded -e ssh user@ip:/source /destination
When rsync has downloaded a file or folder, how can i get rsync to touch the file / folder with a date and timestamp for when the download was completed on the destination?
Thanks on advance.
So i see that -a preserves for example timestamps.
Changed -a out with -o and -g along with -p these preserve the group, owner and permissions but not symbolic links and timestamps.