s3rm

Crates.ios3rm
lib.rss3rm
version0.1.0
sourcesrc
created_at2022-11-25 15:30:58.066842
updated_at2022-11-25 15:30:58.066842
descriptionBulk remove object from S3
homepagehttps://sr.ht/~jpastuszek/s3rm/
repositoryhttps://git.sr.ht/~jpastuszek/s3rm
max_upload_size
id722846
size96,072
Jakub Pastuszek (jpastuszek)

documentation

README

Latest Version License

S3 Object Remover

Bulk remove object from S3. Optionally create backup as a tar archive.

Features:

  • Takes a list of keys to remove form a bucket on standard input.
  • Optionally generates tar archive backup to standard output.
  • Bulk deletes objects using AWS bulk delete API.

Example usage

Note: You need to set up AWS credentials and default region using ~/.aws/credentials and ~/.aws/config files or use environment variables (AWS_DEFAULT_REGION, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) or use instance profile (on EC2). Consult AWS documentation for details. Additionally options --aws-region and --aws-region-endpoint can be specified on the command line.

cat object.list | s3rm --verbose --backup mybucket > backup.tar

Installation

With Rust already installed on you system.

cargo install s3rm
Commit count: 0

cargo fmt