Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 788 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 788 Bytes

S3 Objects migrator

Migrate objects with metadata between two S3 storage.

How to start

Please provide AWS Credential and region in env variables.

  1. Add the env variables 🔧
ENV Description
BUCKET_FROM Amazon S3 bucket name
BUCKET_TO Amazon S3 bucket name
PREFIX_FROM Prefix to file
PREFIX_TO Prefix to file

The default prefix is empty. If you wanna change the file location just set prefix's names. The script will replace PREFIX_FROM from BACKET_FROT to PREFIX_TO from BUCKET_TO. How to prefix works: https://pl.kotl.in/fInJE2a-2.

  1. Build 🔨
./gradlew build
  1. Run 🚀
./gradlew execute