Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Database Backuper

Trival .net worker to create regular database backups by cron schedule. After creation service will upload it on the secured storage (destination).

Databases

  • postgres

Storages (Destinations)

  • Google Drive

Want more? Do not be shy and contribute. Everything what You must code is implementation of the:

How to use this precious service?

Fetch the REAL OG DOCKER IMAGE, then inject configuration.

docker run --detach \
    --restart=always \
    --name backuper \
    -v /usr/volumes/backuper:/app/credentials \
    -v /usr/volumes/backuper-tmp:/app/tmp \
    -e Cron="0 */6 * * *" \
    -e RemoveBackupsOlderThan="15.00:00:00" \
    -e Sources:0:Type="postgres" \
    -e Sources:0:Port="5432" \
    -e Sources:0:Host="192.168.0.1" \
    -e Sources:0:Database="my-awsome-db" \
    -e Sources:0:Username="postgres" \
    -e Sources:0:Type="postgres" \
    -e Sources:0:Password="my-awsome-pssw" \
    -e Sources:0:CustomArgs="--format=c" \
    -e Sources:0:DestinationKey="my-awseome-google-drive" \
    -e Destinations:0:Type="gdrive" \
    -e Destinations:0:Key="my-awseome-google-drive" \
    -e Destinations:0:DirectoryId="SOMEID" \
    -e Destinations:0:CredentialsPath="./credentials/google_credentials.json" \
    rogaliusz/database-backuper:7

Postgres

Working on the pg_dump and connection to the database by username & password.

Google Drive

Working by the json credentials, that is the reason why is good to mount credentials volume.

Enjoy 🦩

About

Simple .Net worker (cron) to create regular databases backup, then upload then on secured storage. Currently handling Postgres and Google Drive (GDrive)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages