Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ccabanero/11261581 to your computer and use it in GitHub Desktop.
Save ccabanero/11261581 to your computer and use it in GitHub Desktop.
Batch upload/download files from Mac to EC2 Ubuntu - Download File from EC2 Ubuntu to Mac
Uploading from Mac Terminal to Remote EC2 ...
scp -i [yourpemfile.pem] [directoryPath]/* [user]@[elastic IP]:[directoryPathToUploadTo]
For example ...
scp -i chubbs_spat.pem arab_data/* [email protected]:PGRestAPI/endpoints/mapnik/data/shapefiles/
Downloading from EC2 Ubuntu to Mac Terminal...
scp -i [yourpemfile.pem] [user]@[elastic IP]:[diretoryPthToFileToDownloadFrom] [directoryPathToDownloadTo]
For example ...
scp -i spatialdev.pem [email protected]:/usr/local/pmt/pmt8.tar ~/Downloads
scp -i spatialdev.pem [email protected]:/data/rasters/* ~/Downloads
scp -i SpatialServer.pem kabinda2.mbtiles [email protected]:public/techtracker/mbtiles
scp -i YourKeyPair.pem -r ~/Critigen/source/rdca-map/dist [email protected]:~/rdca-map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment