@echo off setlocal set "AWS_PROFILE=default" :: Use your AWS CLI profile name set "S3_BUCKET_NAME=your-bucket-name" set "SOURCE_DIR=C:\...you location" echo Backing up files from %SOURCE_DIR% to s3://%S3_BUCKET_NAME% aws s3 sync %SOURCE_DIR% s3://%S3_BUCKET_NAME% --delete endlocal