To sync local directory to FTP server use (Linux script): lftp -c “set ftp:list-options -a; open ftp://<ftpuser>:<ftppass>@<ftp.host.com>:<ftpport>; lcd…
To sync remote directory to local computer use (Linux script): lftp -c “set ftp:list-options -a; open ftp://<ftpuser>:<ftppass>@<ftp.host.com>:<ftpport>; lcd…
Steps: Get code from bitbucket: git clone –bare https://<username>@bitbucket.org/<userdir>/<project>.git cd <project>.git git push –mirror ssh://git-codecommit.us-east-2.amazonaws.com/v1/repos/<project>