copy folder from local to ubuntu server code example
Example 1: copy folder from local to ubuntu server
rsync -avz -e 'ssh' /path/to/local/dir user@remotehost:/path/to/remote/dir
Example 2: copy folder in ubuntu
cp -r /path/to/directory /path/to/location/new-name