I'm trying to copy a file myfile.scr
from my local Linux server to multiple folders on remote AiX server using single rsync command.
Below command helps me copy the file " myfile.scr
" from my localhost to a remote host folder " /app/deployment/tmpfiles
"
rsync --delay-updates -F --compress --chmod=755 "--rsh=/usr/bin/ssh -S none -i /app/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" "--out-format=<<CHANGED>>%i %n%L" "/app/deployment/tmpfiles/myile.scr" "user2@remotehost":"/fin/cust/scripts/"
Can we tweak this command so that it copies the file " myile.scr
" to one more folder " /app/deployment/tmpfiles/BACKUP
" on the remote using the same established rsync connection ?
Note: the copied files should NOT preserve its timestamp but should reflect the current timestamp.