guides/Migration.md

26 lines
986 B
Markdown
Raw Permalink Normal View History

2020-07-14 14:07:51 +00:00
#Migration from one vps to other
This migration guide covers migration of applications (Nextcloud, Gitea and Currency converter) and their data containers
#### Lets jump right into it
2020-07-14 14:35:08 +00:00
1. Firstly open inventory/filetransfer.ini file and provide source and target machine IP addresses.
2020-07-14 14:07:51 +00:00
2. Now set variables in playbooks/backup_restore.yml file
````yaml
vars:
current_user: hemani (User should exist in both target & source machines)
ansible_ssh_keyfile_path:
key_file_name:
````
3. Now Run Following command on target machine
```
* $ansible-playbook -i inventory/inventory.ini playbooks/docker-playbook.yml
* $ansible-playbook -i inventory/inventory.ini playbooks/next-cloud-playbook.yml
* $ansible-playbook -i inventory/inventory.ini playbooks/git-tea-playbook.yml
```
4. Finally execute back and restore play book
```
$ansible-playbook -i inventory/inventory.ini playbooks/backup_restore.yml -vvv
```