https://github.com/paxa/db_backup
Container friendly backup for databases
https://github.com/paxa/db_backup
Last synced: 4 months ago
JSON representation
Container friendly backup for databases
- Host: GitHub
- URL: https://github.com/paxa/db_backup
- Owner: Paxa
- Created: 2018-04-10T17:37:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-05T10:26:30.000Z (almost 8 years ago)
- Last Synced: 2025-01-28T15:16:18.557Z (over 1 year ago)
- Language: Ruby
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# db_backup - Container friendly backup for databases
_early alpha, don't use it_
### Supported databases:
* Postgres (pg_dump)
* Influxdb (influxd backup)
* Local File
### Supported storages:
* Local Folder
* Backblaze (via pip b2)
* WebDav (via curl)
### Example:
Basic:
```sh
./bin/db_backup backup \
--verbose \
--source postgres://postgres@localhost/my_app \
--taget b2://key:token@bucket/path \
--keep-num 5
```
With enviroment variables:
```sh
export BACKUP_VERBOSE=1
export BACKUP_SOURCE=postgres://postgres@localhost/my_app
export BACKUP_TARGET=b2://key:token@bucket/path
export BACKUP_KEEP_NUM=5
./bin/db_backup backup
```
### Docker image
```
evpavel/db_backup
```
https://hub.docker.com/r/evpavel/db_backup/