https://github.com/omegion/db-backup
Go CLI tool to create database backups on local and S3 bucket.
https://github.com/omegion/db-backup
backups database-backup open-source s3-buckets
Last synced: about 2 months ago
JSON representation
Go CLI tool to create database backups on local and S3 bucket.
- Host: GitHub
- URL: https://github.com/omegion/db-backup
- Owner: omegion
- License: apache-2.0
- Created: 2021-02-28T21:57:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-21T21:27:12.000Z (3 months ago)
- Last Synced: 2025-03-30T02:04:52.849Z (2 months ago)
- Topics: backups, database-backup, open-source, s3-buckets
- Language: Go
- Homepage:
- Size: 302 KB
- Stars: 19
- Watchers: 1
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# Database Backup Tool
[](http://pkg.go.dev/github.com/omegion/db-backup)
[](https://coveralls.io/github/omegion/db-backup?branch=master)
[](https://goreportcard.com/report/github.com/omegion/db-backup)
[](http://pkg.go.dev/github.com/omegion/db-backup)Dump or Import backups from local or S3 buckets.
## Install Globally
```shell
go get github.com/omegion/db-backup
``````shell
CLI command to create backup for provider in local or cloud.Usage:
db-backup [command]Available Commands:
help Help about any command
local dump Management
s3 dump Management
version Print the version/build numberFlags:
-h, --help help for db-backup
--logLevel string Set the logging level. One of: debug|info|warn|error (default "info")Use "db-backup [command] --help" for more information about a command.
```## Custom S3 Endpoint for Scaleway
```shell
export AWS_ACCESS_KEY_ID=X
export AWS_SECRET_ACCESS_KEY=X
export AWS_DEFAULT_REGION=fr-par
export BUCKET_NAME=testdb-backup dump s3 \
--type=postgres \
--host=example.com \
--port=1234 \
--provider=test \
--username=test \
--password="12345" \
--bucket-name=$BUCKET_NAME \
--endpoint-url=s3.fr-par.scw.cloud
```