In the clone/rsync strategies when you need to use sudo to create the directories, the rsyncTo method does not check and add any options when sudo is required in the remote.
I had to create a custom strategy to deal with this (and other options), this is the sample code I used when subclassing in the 'rsyncTo' method, but not sure if this is optimal for a more global change:
In the clone/rsync strategies when you need to use sudo to create the directories, the rsyncTo method does not check and add any options when sudo is required in the remote.
I had to create a custom strategy to deal with this (and other options), this is the sample code I used when subclassing in the 'rsyncTo' method, but not sure if this is optimal for a more global change:
$options['--rsync-path'] = "sudo rsync";