Sooner or later every developer needs to migrate files to another server
I just had in trouble with this and found very clear solution
If you want to push single file
scp -P port /home/dir/dir/file.tar.gz root@server_ip:/home/dir/or_new_dir/newfile.tar.gz
And scp can push multiple files and folders ,
scp -rp -P port /home/target_folder/ root@server_ip:/home/destination_folder
Good luck 😉