audreyfeldroy / alotofeffort

Instantly deploy static HTML sites to S3 at the command line.
BSD 3-Clause "New" or "Revised" License
55 stars 5 forks source link

Delete files found in bucket that aren't in www #5

Open audreyfeldroy opened 11 years ago

audreyfeldroy commented 11 years ago

If a file is in the bucket but not present locally, the bucket file should be deleted.

Prompt the user before deleting, since auto-deletion is scary!

merwok commented 10 years ago

What do you think of downloading files to a .backup directory and then deleting them in the bucket? People are trained to accept confirmation dialogs without reading them; undo features are more friendly than confirmation dialogs.

audreyfeldroy commented 10 years ago

I think that sounds like a good idea. I might not get to this for a bit, but if you or someone else does, I can merge it in.

merwok commented 10 years ago

That sounds like a fun thing to code (after #2 probably, if the default backup directory is under the www directory). Is there a free plan for S3 if I don’t want to pay during testing? Can we rely on docs and mocks? Should I try using an OpenStack server with the AWS API?