Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alertedsnake/4ab16bc3514cef3f61588d8b9d6b15d8 to your computer and use it in GitHub Desktop.
Save alertedsnake/4ab16bc3514cef3f61588d8b9d6b15d8 to your computer and use it in GitHub Desktop.
file move program spec
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