https://github.com/mirantis/fuel-plugin-backup
https://github.com/mirantis/fuel-plugin-backup
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mirantis/fuel-plugin-backup
- Owner: Mirantis
- License: apache-2.0
- Created: 2015-12-02T16:36:16.000Z (over 9 years ago)
- Default Branch: 7.0
- Last Pushed: 2020-02-26T11:56:45.000Z (about 5 years ago)
- Last Synced: 2025-01-17T12:17:48.882Z (4 months ago)
- Language: Shell
- Size: 85 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Fuel infrastructure backup plugin
===================Compatible versions:
Mirantis Fuel 6.1
Ubuntu 14.04 serverPurpose
---------------
It creates backups of sensitive cloud data.You can change the following options from Fuel UI:
---------------
1. Backup folder location2. Number copies to store
3. And what to backup:
3.1. ETC Backup from cloud-nodes. Just to have information about all nodes in case of disaster recovery.
3.2. FUEL-backup. It is necessary to have information about all cloud nodes their roles and configuration to be able to add/remove nodes, manage clusters.
3.3. CEPH-RBD incremental backup (if enabled as a storage). When we use ceph-rbd for all cloud needs such as volumes, images, ephemeral storages in couple with mysql db backup, we have full information about all virtual storages, and have the ability to restore cloud in case of disaster.
3.4. MySQL db backup.
Building and installation
===================How to build plugin:
---------------You can build plugin using the Fuel plugin builder tool: https://pypi.python.org/pypi/fuel-plugin-builder.
Install fpb Python module:
```
[local-workstation]$ pip install fpb
```Install system packages fpb module relies on:
* If you use Ubuntu, install packages createrepo rpm dpkg-dev
* If you use CentOS, install packages createrepo dpkg-devel dpkg-dev rpm rpm-buildClone plugin repository and run fpb there:
```
[local-workstation]$ git clone [email protected]:Mirantis/fuel-plugin-backup.git
[local-workstation]$ fpb --build fuel-plugin-backup
```
Check if rpm file was created:
```
[local-workstation]$ ls -al fuel-plugin-backup | grep rpm
-rw-rw-r--. 1 user user 656036 Jun 30 10:57 backup-1.0-1.0.0-1.noarch.rpm
```
Upload rpm file to fuel-master node and install it. Assuming you've put rpm into /tmp directory on fuel-master:
```
[fuel-master]# cd /tmp
[fuel-master]# fuel plugins --install backup-1.0-1.0.0-1.noarch.rpm
```
Check if Fuel sees plugin:
```
[fuel-master]# fuel plugins list
id | name | version | package_version
---|-------------------|---------|----------------
3 | backup | 1.0.0 | 2.0.0
```You can uninstall plugin using the following command:
```
[fuel-master]# fuel plugins --remove backup==1.0.0
```
Please note you can't uninstall the plugin if it is enabled for an environment. You'll have to remove an environment first, this action destroys all stored data and settings for this environment.Deployment process
===================1. Create new environment, enable Backup plugin in 'Options' section of environment interface, modify settings if needed.
2. Navigate to 'Nodes' section of UI, press 'Add nodes button'
3. Assign controller/compute roles to the respective nodes.
4. Push Deploy Changes button.
5. After deployment process primary-controller node (node with controller role with minimal node-id) will be created folder that contains folders [etc, fuel, mysql, ceph] (optional) each folder contains corresponding bash-script that is responsible for creation of backup. Scripts will be managed by crontab-rule once a day(at 4:38, 5:38, 6:38, 7:38).