1

and I think I can use

aws s3 sync . s3://s3bucket 

But I'm not sure where to put the --delete

Also I want to run this command from time to time to push all new files in my local folders to s3 and deleting locally. I have few hundred thousand files to move almost ~400,000, how long will it take, each file is ~ 30kb-40kb

1 Answer 1

2

The --delete option does not do what you think it does. From the documentation:

--delete (boolean) Files that exist in the destination but not in the source are deleted during sync.

The mv option may be what you're looking for.

With regards to how long it will take, there's no way anyone but yourself can answer that question.

1
  • thanks @EEAA i did read the documentation and i was confused where to put the delete since i didn't want to do a sync exactly. I missed the mv command, which is exactly what I need. Thanks!
    – rashid
    Sep 21, 2015 at 14:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .