guides/Migration.md
2020-07-14 19:35:08 +05:00

986 B

#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

  1. Firstly open inventory/filetransfer.ini file and provide source and target machine IP addresses.
  2. Now set variables in playbooks/backup_restore.yml file
    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