Last active
October 12, 2018 19:07
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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