geosolutions-it/geonode-backup-docker

Name: geonode-backup-docker

Owner: GeoSolutions

Description: GeoNode backup image

Created: 2018-04-18 16:49:18.0

Updated: 2018-04-19 13:54:27.0

Pushed: 2018-04-19 13:54:26.0

Homepage: null

Size: 9

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

GeoNode backup container

This repo contains docker build config for backup container to be used along with geonode-generic stack

Usage

This container runs cron in foreground with one script scheduled to be run once a day, at 2:02.

Script /root/backup.sh will run

PostgreSQL backup will be run twice, before and after filesystem backup. Each backup run will resutl in timestamped file.

All backup files are stored in /mnt/volumes/backups/$rancher_stack_name/$backup_type/$date directory, where:

For example,

mnt/volumes/backups/geonode-generic-sdffsdf/pg/20180419/:
r--r-- 1 root 184056 Apr 19 10:24 pg_dumpall-2018_04_19_1024_04.tar.gz
r--r-- 1 root 184056 Apr 19 10:24 pg_dumpall-2018_04_19_1024_09.tar.gz

mnt/volumes/backups/geonode-generic-sdffsdf/fs/20180419/:
r-xr-x 20 root   4096 Apr 19 10:22 data (there's data gs dir structure)
r--r--  1 root 190057 Apr 19 10:24 data-2018_04_19_1024_09.tar.gz
Configuration

Backup container requires several elemnts to work correctly:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.