Skip to content

Small and simple Go Alpine image to backup odoo postgres database and filestore to google drive.

Notifications You must be signed in to change notification settings

Niivii/odoo-docker-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

odoo-docker-backup

Small and simple Go Alpine image to backup odoo postgres database and filestore to google drive.

What it does ?

cron a script with logs to docker engine that :

Requirements

Linux machine with docker installed

Configuration

You can change the cron to fit your needs. Don't forget to change your password, database name and url in the script.

Building the image

docker build --rm -t backup/cron .

Run the image

docker run -d backup/cron

Setup gdrive

Attach to the running container :

docker exec -it <name-of-the-container> /bin/sh

Follow the instructions to init gdrive (https://github.com/odeke-em/drive/blob/master/README.md#initializing) :

gdrive init /root/backups/

Go to the url and copy paste the token

About

Small and simple Go Alpine image to backup odoo postgres database and filestore to google drive.

Resources

Stars

Watchers

Forks