how do i ftp from one server to another ubuntu

C++
wget -mbr --user="[email protected]" --password="YOUR_PASSWORD" "ftp://ftp.example.com/PATH_TO/YOUR_FILES/*"

Source

Also in C++: