This executable automatically cleans up old files outside the given compliance timeframes.
Pre-built binaries are available on the releases page.
Simply download the binary for your platform and run it.
Install with Homebrew on macOS (or Linux with Homebrew installed):
brew tap clivewalkden/taps
brew install wasabi-cleanup
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
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
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.connection
the connection information pointing to the server with the files housedurl
the server access urlregion
the region the server is locatedprofile
the AWS config and credentials profile used to connect
We use SemVer for versioning. For the versions available, see the tags on this repository or CHANGELOG.md.
- Clive Walkden - Initial work - SOZO Design Ltd
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE file for details