Backup Restore option in Settings under Administrator
Backup \ export \ import options in Administrator settings page to\from tar file that can be used to re-deploy to another server with all data (including channel data)
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
:+1: @Megatronic79 is transforming Rocket.Chat into an Enterprise grade platform - one feature at a time.
haha - loving the product guys
This will probably be pretty easy when @geekgonecrazy gets finished with his import-framework branch. :smile:
Nice
Related to #746 - download history
Isn't this also related with #332 and #992 ? at least the "restore option"
I know they are different. This is an "import" option for the proper rocketchat backup, but it could be all the same process. An import / export wrapper and libraries to export / import to different formats (rocket chat itself, slack, hipchat and so on).
For example, in my work we're currently using hipchat and having an "import from hipchat" option would make us change from hipchat to rocketchat without thinking in it.
@elboletaire Yes, there has been some work on an import framework which will allow people to create imports for any other chat service out there. Slack one is in progress and I agree that the export should be similar for Rocket.Chat.
@elboletaire Yes, there has been some work on an import framework which will allow people to create imports for any other chat service out there. Slack one is in progress and I agree that the export should be similar for Rocket.Chat.
nice! I shall be attentive to it :smile:
I am also wanting this feature.
almost a year, still don't have progress?
@9cat we haven't gotten to this yet. We have some other key things we need to take care of first. But... Since Rocket.Chat is self hosted, you can back up the database at absolutely any time you want via mongo.
It's very easy to script the backup and schedule via mongodump.
This is my script I run from crontab once per hour
backup.sh #!/bin/sh
daten=$(date +%y%m%d%H%M) mongodump -o /home/user/backup/$daten
How can I get that to work when my mongodb is inside of a docker-compose container @lunitic ?
@wargamesqcf something like this.. docker run -it --rm --link rocketchat_mongo_1:db -v $PWD:/backup mongo mongodump -h db -o /backups/<yourfilename>
Haven't tested this, but I think will work.
its not rocketchat_mongo_1:db its whatever your username is _mongo_1:db
Now the question comes how do I restore the backup
@wargamesqcf yeah actually I think its dependent on the name of the folder you have the docker-compose file in. I personally put mine in a folder rocketchat so mine is always prefixed with rocketchat. But if you are running it from your home folder... then yeah it'd start with your username :smile:
yep that probably what is happening, but you should output something to /backups folder in linux right?
@wargamesqcf that command would run inside the container and put the backup inside of the /backup folder inside the container. That folder is mounted to your file system to $PWD which represents your current folder. If you wanted to dump it into a certain folder then you would change $PWD:/backups to something like /backups:/backups and then on server backups would be found in /backups
That worked! now how do we reserves this if/when the mongodb crashes and dies?
docker run -it --link foldername_mongo_1:db -v /backups:/backups mongo mongodump -h db -o /backups/test