- Elixir 1.6+
- Run
mix deps.getto install Elixir dependencies - Add SSH credentials for the EMu server to
config/dev.exs
Run mix Images.Update "path/to/json_file.json" "path/to/output/directory"
Note: directories that are not found in the JSON input file will be deleted from the output directory
Run mix Images.Sync "path/to/images/directory" "S3 bucket name" "profile"
profile coresponds to an existing AWS access configuration, most likely stored in ~/.aws/credentials (More info here)
Optionally add "dryrun" as the last argument to see an output of the proposed changes to S3 before committing them.
Note: existing entries in S3 that are not found in the input directory will be deleted from the S3 bucket