|
|
@ -1,17 +1,27 @@ |
|
|
|
**service-updater** - Script for updating service/application |
|
|
|
**service-updater** - Script for updating service/application |
|
|
|
|
|
|
|
|
|
|
|
## Description |
|
|
|
# Description |
|
|
|
|
|
|
|
|
|
|
|
This scenario update application on remote server with full back up of configuration |
|
|
|
This scenario updates the Java application on remote server with creating full |
|
|
|
files and database. |
|
|
|
backup of configuration files and database. |
|
|
|
|
|
|
|
|
|
|
|
## Requirements |
|
|
|
**NB:** I would now consider this scenario as an example of the implementation |
|
|
|
|
|
|
|
of a software update process, but in practice I would use configuration |
|
|
|
|
|
|
|
management systems and deployment tools. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# License |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[GNU General Public License v3.](https://www.gnu.org/licenses/gpl-3.0.html) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Requirements |
|
|
|
|
|
|
|
|
|
|
|
# install python-dev libffi-dev |
|
|
|
# install python-dev libffi-dev |
|
|
|
# pip install configparser |
|
|
|
# pip install configparser |
|
|
|
# pip install fabric |
|
|
|
# pip install fabric |
|
|
|
|
|
|
|
|
|
|
|
## Usage |
|
|
|
# Usage |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$ fab <command> |
|
|
|
|
|
|
|
|
|
|
|
backup_db Back up distributive |
|
|
|
backup_db Back up distributive |
|
|
|
backup_db_copy Backround upload of backup to remote server |
|
|
|
backup_db_copy Backround upload of backup to remote server |
|
|
|