sql-backup

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT

README

sql-backup

Build Status

Backs up pgsql based db's, currently supports postgres and cockroach. Default values are for cockroach. This started as a fork of cockroach-backup

cockroach

sql-backup --dbcli-binary "cockroach" --dbcli-dsn "root@localhost:26257/system?sslmode=disable" once

postgres

If using postgres need to set shell var PGPASSWORD

sql-backup --dbcli-binary "pg_dump" --dbcli-dsn "postgres@localhost:5432/postgres?sslmode=disable" once

Scheduling

The --schedule flag or SCHEDULE var can be set in the following formats

Every hour on the half hour"

"0 30 * * * *"

Every hour

"@hourly"

Every hour thrity

"@every 1h30m"

Directories

Path Synopsis
cmd
internal
db

Jump to

Keyboard shortcuts

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