paas-s3restore

command module
v0.0.0-...-8012e11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2016 License: MIT Imports: 9 Imported by: 0

README

S3R - Restore S3 bucket

This is small utility that can restore your S3 bucket to the point in time. Your bucket needs to have versioning enabled. Be aware that if you have life cycle policy enabled than versions removed permanently can't be restored.

You need to export AWS environmental variables to make it work:

export AWS_ACCESS_KEY_ID=XXXXXXXXXXX
export AWS_SECRET_ACCESS_KEY=XXXXXXXXXX
export AWS_REGION=eu-west-1

Usage

usage: s3r <command> <args>
 restore   Restore bucket objects
  -bucket string
        Source bucket. Default none. Required.
  -prefix string
        Object prefix. Default none.
  -timestamp string
        Restore point in time in UNIX timestamp format. Required.
 list   List object versions. Not implemented
  -since string
        Not implemented

How to get it

git clone https://github.com/alphagov/paas-s3restore.git
cd paas-s3restore
./build.sh

Binary will be created in the current directory.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL