如何从使用Heroku PG备份制作的备份恢复三个项目? [英] How do I restore three items from a backup made using Heroku PG Backups?

查看:143
本文介绍了如何从使用Heroku PG备份制作的备份恢复三个项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Rails应用程序在Heroku上运行,并安装了免费的pgbackups插件。

我想从备份中恢复三条记录。

p>

根据 恢复整个数据库。



如何恢复这三条记录?

解决方案

创建一个新的数据库,将pgbackup加载到它,然后樱桃选择你想要的。


I've got a Rails app running on Heroku and installed the free pgbackups addon.

There's three records I'd like to restore from the backup.

According to Heroku docs when you do a restore, it restores the whole database.

How do I restore just these three records?

解决方案

Create a new database, load the pgbackup into it, and then cherry pick what you want out of it.

这篇关于如何从使用Heroku PG备份制作的备份恢复三个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆