用户帐户备份和恢复
我目前正在开发一个项目,我希望我的用户能够备份/恢复他们的帐户。
我正在寻找一个可以轻松做到这一点的 Rails 插件/gem,即:
current_user.backup()
=>备份文件
当前用户.恢复(备份文件)
=>数据库导入/替换
我不知道我的问题是否很清楚,但我想备份每个用户的相关对象(帖子、评论等)并能够从备份文件中恢复它们。
预先感谢,
塞德里克。
I am currently working on a project and i would like my users to be able to backup/restore theirs accounts.
I am looking for a rails plugin/gem that would easily do that, ie :
current_user.backup()
=> backup_file
current_user.restore(backup_file)
=> database import/replace
I don't know if my question is very clear, but i would like to backup every user's related object (posts, comments, etc) and to be able to restore them from a backup file.
Thanks per advance,
Cédric.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有这样的 gem b/c 用户数据对于每个项目来说都是非常特定的。
你必须自己写。
There's no such gem b/c user data is very specific to each project.
You will have to write it yourself.