直接拷贝 volume
vackup export rocketchat-docker_mongodb_data rocketchat-docker_mongodb_data.tar.gz
vackup import rocketchat-docker_mongodb_data.tar.gz rocketchat-docker_mongodb_data
备份数据库
# 备份
docker exec rocketchat-docker-mongodb-1 sh -c 'mongodump --archive' > db.dump
# 恢复
docker-compose up mongodb
docker exec -i rocketchat-docker-mongodb-1 sh -c 'mongorestore --archive' < db.dump