Skip to content

Commit

Permalink
Don't schedule the task with delete if the initial sync failed
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielThomas committed Oct 30, 2016
1 parent 6ea4156 commit 55d2f01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/ec2gaming.bat.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ md Z:\SteamLibrary\steamapps
cmd /c mklink /j "C:\Program Files (x86)\Steam\steamapps" Z:\SteamLibrary\steamapps
md Z:\Documents
aws s3 sync Z:\Documents s3://BUCKET/Documents
if %errorlevel% neq 0 exit /b %errorlevel%
schtasks /Create /RU USERNAME /RP PASSWORD /F /SC MINUTE /MO 1 /TN "Sync Documents with S3" /TR "aws s3 sync Z:\Documents s3://ec2gaming-639801188054/Documents --delete"

0 comments on commit 55d2f01

Please sign in to comment.