FTP Command Line

For FTP command line, is it possible to setup site-to-site FTP sync?

e.g. I want to get files from remote FTP site:a.a.a.a and sync it to remote FTP site:b.b.b.b

rclone sync :ftp:/site/wwwroot/ --ftp-host=a.a.a.a :ftp:/site/wwwroot/ --ftp-host=b.b.b.b

If I run the above command, I got following error:

Nothing to do as source and destination are the same

CL

Perhaps by creating two separate in-memory configs using environment variables as documented here: https://rclone.org/docs/#config-file

On Windows, something like this (untested):

SET RCLONE_CONFIG_FIRST_TYPE=ftp&SET RCLONE_CONFIG_FIRST_FTP_HOST=a.a.a.a&SET RCLONE_CONFIG_SECOND_TYPE=ftp&SET RCLONE_CONFIG_SECOND_FTP_HOST=b.b.b.b&rclone sync first:/site/wwwroot/ second:/site/wwwroot

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.