@ECHO OFF REM =========================================================================== REM Set common variables REM project_list will be whatever directories you wish to copy from the s3 projects directory to local REM =========================================================================== SET aws_s3_bucket=drh-video1 SET drive_location=D:\projects REM SET drive_location=C:\Users\david\projects SET project_list=OVFM logo REM =========================================================================== REM Set varialbes used in script REM =========================================================================== SET local_project_location=%drive_location% SET s3_project_location=s3://%aws_s3_bucket%/projects echo Local project location: %local_project_location% echo S3 project location: %s3_project_location% REM =========================================================================== REM List available projects REM =========================================================================== echo =========================================================================== echo Available Projects echo =========================================================================== aws s3 ls %s3_project_location%/ REM =========================================================================== REM Create some local directories REM =========================================================================== mkdir %drive_location% mkdir D:\MEDIA REM =========================================================================== REM Pull projects down REM =========================================================================== echo =========================================================================== echo Downloading Configured Projects echo =========================================================================== FOR %%i in (%project_list%) do ( aws s3 cp %s3_project_location%/%%i %local_project_location%\%%i --recursive ) pause