The native’s clients ftp linux are old and mostly don’t accept directories recursive transfer automatically.
So, if we need transfer files and directories using ftp protocol automatically we need to use other tools like ncftp.
Ncft is a modern ftp client with a lot of features but essentially it can transfer directories recursively without problems
On Debian systems, we can install it using:
apt update; apt install ncftp
ncftp have a lot of features but we need to use it for transfer automatically files and directories:
ncftpput -R -v -u “user” ftp.remote /remote/path/for/upload /local/folder/for/copy/to
I hope that this can be helpful for you.