Created
July 22, 2021 17:57
-
-
Save MrJoshFisher/6bc4b0ba4854ab38838a73564a79120c to your computer and use it in GitHub Desktop.
[Linux - Compress, SFTP Remove Folder] #linux
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
// ADD SSH KEY OF SERVER TO STORAGE DEVICE | |
tar -zcvf DIRECTORYNAME.tar.gz DIRECTORY | |
sftp USER@SERVER:/SIRECTORY <<< $'put -r DIRECTORYNAME.tar.gz' | |
rm -f DIRECTORYNAME.com.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment