ESGF / esgf-installer

ESGF P2P Node Installer
https://esgf.llnl.gov/
Other
20 stars 21 forks source link

Create migration backup script #652

Closed William-Hill closed 5 years ago

William-Hill commented 5 years ago

When migrating from 2.x to 3.0, we should provide a mechanism to safely backup existing data and configurations so that functionality and integrity is preserved. This script can be run by the bootstrap if detects an existing 2.x installation (searching for existence of /usr/local/bin/esg-node and grepping script_maj_version). A potential option is to run the post installation tests to determine if the node is in working order before beginning the backup.

Some of the relevant directories and files that should be backed up: /esg/config /esg/data (dependant on size of data and disk space) /usr/local/cog_config /var/lib/pgsql/data

William-Hill commented 5 years ago

@nathanlcarlson I added you as an assignee as well because I don't know how much work you have already done towards this and don't want to step on your toes

nathanlcarlson commented 5 years ago

@William-Hill I have not done anything on this.

William-Hill commented 5 years ago

https://github.com/ESGF/esgf-installer/wiki/ESGF-Pre-Installation-Backup lists some relevant directories to backup

William-Hill commented 5 years ago

Resolved as part of #674