RocketChat / Rocket.Chat.Ansible

Deploy Rocket.Chat with Ansible!
MIT License
94 stars 80 forks source link

Rocket Chat Migration. #77

Open 0xMH opened 6 years ago

0xMH commented 6 years ago

Could the migration process be implemented? My thoughts is that it's just migrating MongoDB right?

xenithorb commented 6 years ago

Can you describe in better detail what it is you're looking for? i.e. "when run with --tags migration this role does.... ?" A description of expected inputs and outcomes would be helpful here.

0xMH commented 6 years ago

I was thinking of migrating an already deployed Rocket chat server to a new server with more specs for example.

xenithorb commented 6 years ago

While technically possible, automating "from one server to another" seems a bit outside of the scope of this role. However, what does make some sense to support is restoring an already existing mongodb database dump, after mongodb is installed by this role. I like it :+1:

0xMH commented 6 years ago

But what is the use cases of restoring an already existing mongodb database dump to the same server? Things like automating backups & restoring?

aoyawale commented 6 years ago

yes, basically that. You can somewhat take this further add the copy module, send it to the other RC host and possibly restore there but, there is no mongodb module to restore like pgsql. So you will have to use shell/command module which can get tricky.

nickbroon commented 6 years ago

Having ansible tasks and variables to specify a database dump to restore would be great for deploying a new RocketChat server with data from an old manually installed system. (And perhaps having ansible task that configure automatic database back dumps would also be great).