Im trying to have my bash script simply run a bunch of aws s3 sync commands at the same time and not do them one by one. It appears that it is only doing one of them at a time instead of doing them all at once. My config is setup so I can run 10+ aws s3 sync at a time. If I ran all the aws commands manually, they will all run and start their uploads. Im not sure why this isn't working...

aws s3 sync /usr/local/backup1/latestbackup/ s3://abucket/backup1/
aws s3 sync /usr/local/backup2/latestbackup/ s3://abucket/backup2/
aws s3 sync /usr/local/backup3/latestbackup/ s3://abucket/backup3/

Why is it not spawning them all at once?

Thanks for any help!

closed as off-topic by Jeff Schaller, Stephen Rauch, Scott, Satō Katsura, roaima Sep 8 '17 at 9:06

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller, Stephen Rauch, Satō Katsura
If this question can be reworded to fit the rules in the help center, please edit the question.


Oops! I was able to fix this by just adding & at the end of each of the lines.

Not the answer you're looking for? Browse other questions tagged or ask your own question.