Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For discussion of alternative backup solutions please contact Patrix and/or Pace-IP


Since Version 1.9.8.2.4 of the DMS there is a possibility to have the Elasticsearch and Postgres Databases backep up from inside their Docker Containers onto the Host Filesystem.

...

Code Block
languageyml
themeEmacs
# Settings for container data backups to /backup/ folder in storage-tree
ENABLE_ES_BACKUP="true"
ENABLE_PG_BACKUP="true"

after those backups have run, you will find files in /storage/postgres/backup and in /storage/elastic/backup.

these can together with the contents of the folder /storage/nuxeo be stored elsewhere.


here is one example on how to do this

(n.b. this is not an official recommendation, especially the storage of passwords in a script is to be considered unsafe practice. however this is here to give you an idea of how to store backups in a simple fashion on a remote storage)


especially for passing a password to a target, you can install a tool called sshpass:


Code Block
languagebash
themeEmacs
yum install sshpass


then, once this is installed you can create a backupscript (shellscript) that can resemble this:


Code Block
languagebash
themeEmacs
# backup script for DMS Stuff


sshpass -p "mysuperpassword" rsync -rau  /storage/nuxeo/data/ backupuser@networkshare:edms-backup/data/
sshpass -p "mysuperpassword" rsync -rau  /storage/elastic/backup backupuser@networkshare:edms-backup/elastic/
sshpass -p "mysuperpassword" rsync -rau  /storage/postgres/backup backupuser@networkshare:edms-backup/pg/


We strongly recommend that you use key-based authentication for your remote Servers