I want to make a rsync with an update of the distant tree. I'd like my command to recursively create missings leaf folders ex :
Before: Source A/A/C_file A/B/C_file A/C/C_file B/A/C_file B/B/C_file B/C/C_file
distant A/A/C_file A/C/C_file B/A/C_file B/C/C_file
After the Rsync command "rsync -atvrz source/dir/ distant/dir " : Distant : A/A/C_file A/B/C_file A/C/C_file B/A/C_file B/B/C_file B/C/C_file The --relative solution doesn't work for me because it creates the new path inside the distant : "distant/dir/source/dir"