How to copy file to smb/cifs dir?

with rclone, there are two ways to do that.

check out my wiki to see which way it best for your case.
https://forum.rclone.org/t/how-to-access-smb-samba-with-rclone