Skip to content

Postgresql database backup application package for dcape

License

Notifications You must be signed in to change notification settings

dopos/dcape-app-pg-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dcape-app-pg-backup

GitHub Release GitHub code size in bytes GitHub license

Postgresql database backup application package for dcape v3.

Docker image used

  • dcape v1: none (used running dcape_db container)
  • dcape v2: internally built image with name stored in ${DCAPE_COMPOSE} drone var
  • dcape v3: dcape-compose (cron uses running dcape_db container)

Requirements

Usage

  • Fork this repo in your Git service
  • Setup deploy hook
  • Run "Test delivery" (config sample will be created in dcape)
  • Edit and save config (enable deploy etc)
  • Run "Test delivery" again (app will be installed and started on webhook host)

See also: Deploy setup (in Russian)

Direct run

If installed via CI/CD

docker exec -ti pg-backup-cron-1 bash -c 'cd /root && /etc/periodic/daily/pgbackup.sh'

For custom database

docker exec -it pg-backup-cron-1 bash -c "make -f /root/Makefile backup DB_NAME=pdns"

If installed locally

make backup

License

The MIT License (MIT), see LICENSE.

Copyright (c) 2017-2023 Aleksei Kovrizhkin lekovr+dopos@gmail.com