Skip to content

Latest commit

 

History

History
77 lines (51 loc) · 2.7 KB

README.md

File metadata and controls

77 lines (51 loc) · 2.7 KB

Cleanup old files on WasabiSys

Scrutinizer Code Quality Build Status CircleCI

This executable automatically cleans up old files outside the given compliance timeframes.

Installation

Pre-built binaries

Pre-built binaries are available on the releases page.

Simply download the binary for your platform and run it.

Homebrew

Install with Homebrew on macOS (or Linux with Homebrew installed):

brew tap clivewalkden/taps
brew install wasabi-cleanup

Run

go run main.go clean

To run with additional debugging output run with the --verbose flag

go run main.go clean --verbose

If you want to check without actually deleting any files you can pass the --dry-run flag

go run main.go clean --dry-run

Config file

This application requires a configuration file to be present in the user home directory or the directory the executable is being run from.

An example config file is included in this repository config.sample

This file contains the following:

buckets:
  bucket-name: 90
  bucket-name-2: 180
  bucket-name-3: 365
connection:
  url: 'https://s3.us-central-1.wasabisys.com'
  region: us-central-1
  profile: wasabi
  1. buckets are the names of the buckets you want to delete files from and the number of days back from today you want kept in the bucket.
  2. connection the connection information pointing to the server with the files housed
    1. url the server access url
    2. region the region the server is located
    3. profile the AWS config and credentials profile used to connect

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository or CHANGELOG.md.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details