db-backup

command module
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

Database Backup Tool

GithubBuild Coverage Status Go Report Card GoDoc

Dump or Import backups from local or S3 buckets.

Install Globally

go get github.com/omegion/db-backup
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 number

Flags:
  -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

export AWS_ACCESS_KEY_ID=X
export AWS_SECRET_ACCESS_KEY=X
export AWS_DEFAULT_REGION=fr-par
export BUCKET_NAME=test

db-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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
s3

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL