A simple way to backup a directory using the storage server with Amazon S3 compatible API like (Minio, Spaces)
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
You need Go >= 1.11.2
First you need clone repo
go get https://github.com/alejandrojnm/simple-backup
go build
other way is download binary for your system, in the release page
Copy binary for /usr/local/bin/
then create cron
00 2 * * * root simple-backup --endpoint=localhost:9000 --ak=accesskey --sk=secretkey --secureendpoint=(true|false) --bucket=system-backup --bucketlocation=us-east-1 --backudir=/srv/backup/mysql/ --daytodelete=7
You can run simple-backup -h
to see help, simple-backup delete all backup from storage server older than 7 days
We use SemVer for versioning.
- Alejandro JNM - Initial work - alejandrojnm
This project is licensed under the Apache License - see the LICENSE.md file for details
- Hat tip to anyone whose code was used
- Inspiration
- etc