A little script for the days when you head is not working. The script copies files from your local machine on to a remote server (assuming you don’t have SSH keys stored on the server).
- Zip the files (I find this cleaner)
1zip -r myZippedFolderToUpload.zip folderToZip
- Rsync the files
1rsync -azv --progress ~/files/myZippedFolderToUpload.zip : email@example.com/~/remoteFolderReceivingUploads
- Unzip the files and move them into correct paths
1unzip myZippedFolderToUpload.zip . // this will unzip to current folder