https://github.com/codemonauts/s3-bucket-rescue
Recover all files from a bucket with versioning
https://github.com/codemonauts/s3-bucket-rescue
Last synced: 8 months ago
JSON representation
Recover all files from a bucket with versioning
- Host: GitHub
- URL: https://github.com/codemonauts/s3-bucket-rescue
- Owner: codemonauts
- License: mit
- Created: 2018-03-20T15:38:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-15T11:00:19.000Z (about 7 years ago)
- Last Synced: 2025-03-11T19:49:24.705Z (12 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bucket-rescue
## Usecase
You have an S3 Bucket with activated versioning but you deleted/corrupted/... EVERY file in it.
## What it does
This tool will find the newest version of a file which has a filesize > 0 bytes and will download it to this folder.
## How to use
```
aws s3api list-object-versions --bucket | ./find_version.py | ./download.sh
```
## ToDo, Known Bugs
- Bucket name has to be changed in the source of both scripts
- No filter. It will download every file in the bucket
- `download.sh` crashes on nested folder strcutures because it can't create the file if the parent folder is missing