Skip to content

nmorenor/server_backup

Repository files navigation

Backup utility

A backup utility to backup MySQL DB and Directory on S3 store. Mainly tested against Digital Ocean Spaces

Requirements

At least go 17

Build

go mod tidy go build

Run

  • To run a backup, edit the config.toml file inside the config directory and just run the executable ./server-backup
  • To view the keys and children stored on S3 bucket ./server-backup -view -bucket <your-bucket>
  • To restore a backup: .server-backup -restore -dir <target-dir> -bucket <your-bucket> -key <target-key> -rotation <target-rotation-key> -date <target-date>