-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is still work in progress as I type this, 90% done
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Linux-SFTP-script | ||
Script for sending multiple files from Linux to SFTP server | ||
|
||
This will eventually be used for sending files using SFTP. There is no password required as this is using keys, more info: | ||
https://askleo.com/how_can_i_automate_an_sftp_transfer_between_two_servers/ | ||
|
||
There will be one script doing these steps: | ||
- renaming file to FILENAME.tmp | ||
- making connection to the SFTP | ||
- uploading the file | ||
- renaming uploaded file back to FILENAME (with no .tmp) | ||
- deleting original local file | ||
|
||
This script will be wrapped with another script that will be running for all files in the local directory, | ||
running above script once per each file. |