stevearm/syncaws — Issue #1: Implement a recover option
Author: stevearm
Created: 2011-12-11 23:38:45+00:00
State: open

syncaws --project recover

Prereqs
* projectName must exist in the config
* fingerprint must exist for the given project at projectId.js
* there must exist an indexList.js on S3 for the given project (it can be empty)

1. scan S3 for any indexes not included in the indexList.js
2. for each orphaned index found, compare it to the fingerprint
3. If they are the same, prompt the user to delete, finish, or do nothing. If they are different, prompt for delete or do nothing

For delete
1. for all new files in the index (not in the previous one) that exist on S3, delete them
2. delete the index

For finish
1. for all new files in the index (not in the previous one) that are not on S3, upload them
2. update indexList.js to include the new index