Hi Guys,
Not sure if it's possible but would like to create a rundeck rsync job to sync any directory on any server, I'd like to do this without setting up ssh key pairs between the servers and utilise the permissions rundeck already has (ability to sudo).
I have something like:
rsync -arv --inplace --delete -e "ssh" --rsync-path="sudo rsync" "rundeck@${REMOTE_SERVER}:${REMOTE_DIR}/" "${LOCAL_DIR}/"
but doesn't work and also tried --rsync-path="sudo -E rsync" to keep the ssh agent key available, still no long, what approach do you guys use?
Thanks
Yusuf