Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

pg-b2

Takes a pg_dump from a postgresql database, gzips the dump and uploads it to Backblaze B2.

Usage

pg-b2 table_name bucket_name [ filename_prefix ]

For example, pg-b2 k3s k3s_dumps hourly/ will take a dump of the k3s table and upload that dump to the hourly/k3s.pgdump.gz file in the k3s_dumps bucket.

The dump is temporarily stored in $HOME/.pgb2_scratch/ (or /tmp/.pgb2_scratch if $HOME is empty). This location can be overwritten by via the $PGB2_SCRATCH_DIR environment variable.

About

Dump postgresql dumps to Backblaze b2

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages