When the DMS server resides in a virtualization environment (such as ESXi, Hyper-V, or the likes), it is most expedient to snapshot and save the whole VM from within the virtualization environment. This will make sure that the whole environment plus repository content will be snapshotted at the backup time which is considered most reliable.
Note: Hyper-V installations may require additional backup of the postgres database since silencing of VMs is sometimes not correctly possible, albeit this is a rare event.
If the DMS server is not operated from within a virtualization environment, sector-level copies of the drives are considered most secure.
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.
In your "Containers" Configurations file (/root/deploy/config/containers.conf)
you are able to activate this backup here:
Code Block | ||||
---|---|---|---|---|
| ||||
# 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 | ||||
---|---|---|---|---|
| ||||
yum install sshpass |
then, once this is installed you can create a backupscript (shellscript) that can resemble this:
Code Block | ||||
---|---|---|---|---|
| ||||
# 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
Nuxeo Backup Strategy
For more information about Nuxeo backup and restore, please refer to:
Find out Nuxeo database info and data folder http://doc.nuxeo.com/display/ADMINDOC/Backup+and+restore http://doc.nuxeo.com/display/ADMINDOC/Backup+and+restore
Find out Nuxeo database info and data folder
In Nuxeo web interface, select 'Admin Center' -> 'System Information' -> 'Setup', then we can see where is the database and where is the data folder.
Backup database
Use postgresql dump to backup Nuxeo database:
pg_dump dbname > outfile
For example, on the Nuxeo server:
pg_dump nuxeo > nuxeo_db_20130903.sql
You can create a compressed DB backup as follows:
pg_dump -Fc nuxeo > 20151225-nuxeo.bak
Backup Nuxeo data folder
example: Use rdiff to backup Nuxeo data folder: http://rdiff-backup.nongnu.org/examples.html
example: use rsync to backup the binaries folder: rsync -azv /Volumes/Work-Data/nuxeo-data-storage/binaries/ admin@nas.ghfip.com.au:/share/HDA_DATA/Backups/nuxeo-binaries/binaries
...