Created
April 7, 2017 18:43
-
-
Save alertedsnake/4ab16bc3514cef3f61588d8b9d6b15d8 to your computer and use it in GitHub Desktop.
file move program spec
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
Given this config file: | |
```YAML | |
credentials: | |
ftp://ftp.someserver.com: | |
user: foo | |
pass: bar | |
path: /path/to/logs | |
ftp://ftp.otherserver.com: | |
user: foo | |
pass: bar | |
path: /path/to/logs | |
s3://cdnlogs.prd.somewhere: | |
user: AKIAI3RBQKHXT23U6EAA | |
pass: djs8djwjbjbhds8uq8dl280r8g08a09X8XJDJFCbcsEr | |
path: /target/directory | |
s3://cdnlogs.stg.somewhere: | |
user: AKIAI8A8QUDLJQUSDNAA | |
pass: djs8djwjr8g08a09X8XJDJFCbcsErbjbhds8uq8dl280 | |
path: /target/directory | |
``` | |
And this command line: | |
```bash | |
move_logs ftp://ftp.edgecast.com s3://cdnlogs.stg.jwplatform | |
``` | |
Do the right thing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment