Skip to content

mcsaucy/pg-b2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages