Rsync - how to copy hidden folder or hidden files when using full path

Hello.
I use this command :

rsync -av --include=".*" --dry-run "$A_FULL_PATH_S"  "$A_FULL_PATH_D"

The data comes from the output of a find command.
And no full source directories are in use, only some files.

Source example

A_FULL_PATH_S="/backup_sys/�001_INSTALL/�100_ETC_and_USER_MODIFIED_FILES/2017_10_06_22h30/home/install_user/.some_dir/some_file"

or

A_FULL_PATH_S="/backup_sys/�001_INSTALL/�100_ETC_and_USER_MODIFIED_FILES/2017_10_06_22h30/home/install_user/some_dir/.some_file"

Corresponding destination

A_FULL_PATH_D="/home/install_user/.some_dir/some_file"

or

A_FULL_PATH_D="/home/install_user/some_dir/.some_file"

Any help is welcome.

rsync has no concept of hidden files and processes both files identically for me.

See my testing transcript below where both files copied OK:

$ A_FULL_PATH_D="home/install_user/.some_dir/some_file"
$ A_FULL_PATH_S="backup_sys/�001_INSTALL/�100_ETC_and_USER_MODIFIED_FILES/2017_10_06_22h30/${A_FULL_PATH_D}"
$ mkdir -p $(dirname $A_FULL_PATH_D $A_FULL_PATH_S)
$ touch $A_FULL_PATH_S
$ rsync -av --include=".*" "$A_FULL_PATH_S"  "$A_FULL_PATH_D"
sending incremental file list
some_file

sent 112 bytes  received 35 bytes  294.00 bytes/sec
total size is 0  speedup is 0.00
 
$ A_FULL_PATH_D="home/install_user/.some_dir/.some_file"
$ A_FULL_PATH_S="backup_sys/�001_INSTALL/�100_ETC_and_USER_MODIFIED_FILES/2017_10_06_22h30/${A_FULL_PATH_D}"
$ touch $A_FULL_PATH_S
$ rsync -av --include=".*" "$A_FULL_PATH_S"  "$A_FULL_PATH_D"
sending incremental file list
.some_file

sent 113 bytes  received 35 bytes  296.00 bytes/sec
total size is 0  speedup is 0.00

$ find $(dirname $A_FULL_PATH_D) -type f -print
home/install_user/.some_dir/.some_file
home/install_user/.some_dir/some_file
1 Like

There were a typo error in my definition of the destination path.

Any way thank you very much for taking time to help me.