backup database A, restore database B
Hi, I want to ask you if the following scenario could work. I have a cluster of 3 nodes, I create database ONE and make a snapshot. Then I create database TWO on the same cluster, is it possible to make a restore into database TWO from the snapshot of database ONE? As far as I know the answer is no because restore operation requires same DB name (at least an empty db) as the snapshot source. In this case, is there a way to perform this operation? thanks, Pietro
0
Comments
different name and you cannot keep the same name on the same cluster.
I'm not agree.
With catalog editor it's possible to change a dbname: In this case all directories will have an 'old name', while a dbname is changed.
For example I changed name from "test" to "sandbox":
How it's look now Changes in configurations: PS
It's complicated, dangerous and you can destroy all database(also I don't know all aftermaths), that is why Im not explaining how to do it. But Pietro already knows how to use in catalog editor...
In this case, I'd like to ask you if I could also change the data and catalog directory of each installation so that they don't cause troubles by being the same.
Finally I found "an easiest way", but it require that database B will be down when restoring - its the only limitation.
https://www.youtube.com/watch?v=bL5Cj5OdSPU
PS
I don't write any explanation, tutorial, HOWTO, e.t.c, try to understand from video, since my environment isn't same as yours. A lot of times happened that something work to me and for others do not (and reason - environment). In video just wanna show that it's works and nothing else(it's not a tutorial).