Rsync fails when writing to ftp server mounted locally
by HerbertWatson from LinuxQuestions.org on (#6D8AG)
I am using curlftpfs to mount a ftp server on my LAN locally. While I can write using standard the standard cp command, when using rsync it will fail. For example here are the commands I have tried both as standard user and as root:
Code:rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 /path/to/folder /ftp_dir/path/to/destination
rsync --archive --no-owner --no-group --no-perms -hh --partial --info=stats1,progress2 --modify-window=1 /path/to/folder /ftp_dir/path/to/destination
rsync -r -hh --partial --info=stats1,progress2 --modify-window=1 /path/to/folder /ftp_dir/path/to/destination
rsync -r --no-owner --no-group --no-perms -hh --partial --info=stats1,progress2 --modify-window=1 /path/to/folder /ftp_dir/path/to/destinationThen rsync will return without fail with
Code: [receiver] mkstemp "/ftp/path/to/destination/.file.2dCUOe" failed: Operation not supported (95)I tried mounting the ftp server in a folder in my home folder and outside it without success. Rsync does work as expected with a mounted SSH FTP server. I would use SSH FTP instead of FTP but software server-side that I cannot change doesn't support it.
Code:rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 /path/to/folder /ftp_dir/path/to/destination
rsync --archive --no-owner --no-group --no-perms -hh --partial --info=stats1,progress2 --modify-window=1 /path/to/folder /ftp_dir/path/to/destination
rsync -r -hh --partial --info=stats1,progress2 --modify-window=1 /path/to/folder /ftp_dir/path/to/destination
rsync -r --no-owner --no-group --no-perms -hh --partial --info=stats1,progress2 --modify-window=1 /path/to/folder /ftp_dir/path/to/destinationThen rsync will return without fail with
Code: [receiver] mkstemp "/ftp/path/to/destination/.file.2dCUOe" failed: Operation not supported (95)I tried mounting the ftp server in a folder in my home folder and outside it without success. Rsync does work as expected with a mounted SSH FTP server. I would use SSH FTP instead of FTP but software server-side that I cannot change doesn't support it.