...
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
|