Search code examples
amazon-web-servicesamazon-s3aws-cli

Will aws s3 sync stops if I close down the shell from where it runs


  • running aws s3 sync s3://bucket_a s3://bucket_b
  • running it from my machine's iterm shell console
  • bucket_A size is 1.5TB
  • iterm is having high mem pressure
  • because of this I'm unable to keep using my laptop

question: if I close my CLI window - this is, without sending ctrl-c to the command - will the sync process stops?

To me, the aws s3 sync instruction has already been received by aws, so it shouldn't harm...


Solution

  • So, just for every other person running the same question, the response is: yes, the process does end if the shell window is closed.

    Why? Because the command issues GET and PUT for each object to be synced hence, when the shell is killed, the active commands too.

    HTH.