Fede Marsell
Basic Pleskian
Hi,
I'm trying restore a backup but pleskrestore fails:
I get this error:
I add -debug option to pleskrestore, and I see the problem is the IP. The backup was made on a different server:
Result:
So, I created a conflict file with this content:
But pleskrestore fails again:
Result:
Any ideas?
Regards,
Miguel,
I'm trying restore a backup but pleskrestore fails:
/usr/local/psa/bin/pleskrestore --restore /backup_file -level clients -filter list:client_name
I get this error:
Unable to resolve all conflicts
I add -debug option to pleskrestore, and I see the problem is the IP. The backup was made on a different server:
/usr/local/psa/bin/pleskrestore --restore /backup_file -level clients -filter list:client_name -debug
Result:
<?xml version="1.0"?>
<conflicts-description>
<conflict id="0" guid="f09daab38d73197894e44bb6095d1023">
<type>
<configuration>
<reason-description>
<required-resource-description>
<ip type="shared" value="XXX.XXX.XXX.XXX"/>
</required-resource-description>
<plesk-object-identifier>
<type>admin</type>
<database-id>1</database-id>
<guid>d0b6a0fc-c02b-42a1-afd8-9a07df93b3a6</guid>
</plesk-object-identifier>
</reason-description>
<resolve-options>
<option name="do-not-restore"/>
<option name="rename"/>
</resolve-options>
</configuration>
</type>
<conflicting-objects>
<node name="client">
<attributes>
<attribute name="id" value="9"/>
<attribute name="guid" value="7a063d50-480e-4f2e-8acd-a3ad28740a33"/>
<attribute name="owner-guid" value="d0b6a0fc-c02b-42a1-afd8-9a07df93b3a6"/>
<attribute name="name" value="client_name"/>
</attributes>
</node>
<node name="domain">
<attributes>
<attribute name="id" value="9"/>
<attribute name="guid" value="1cd4c8e6-5ec9-4341-91b7-5d3b2f15c50f"/>
<attribute name="owner-guid" value="7a063d50-480e-4f2e-8acd-a3ad28740a33"/>
<attribute name="name" value="domain_name"/>
</attributes>
</node>
<node name="phosting">
<attributes>
<attribute name="guid" value="1cd4c8e6-5ec9-4341-91b7-5d3b2f15c50f_phosting"/>
<attribute name="owner-guid" value="1cd4c8e6-5ec9-4341-91b7-5d3b2f15c50f"/>
</attributes>
</node>
</conflicting-objects>
<overview>
<object>
<message>backup__restore__conflict_object_name</message>
<name>client_name</name>
<type>backup__restore__object_client</type>
<reasons>
<reason>
<message>backup__restore__conflict_configuration_reason_ip</message>
<resolver-message>backup__restore__conflict_configuration_reason_ip</resolver-message>
<param name="ip-address" value="XXX.XXX.XXX.XXX"/>
<param name="ip-type" value="shared"/>
<param name="name" value="backup__restore__object_plesk_admin"/>
<param name="type" value="backup__restore__object_plesk_admin"/>
</reason>
</reasons>
</object>
<object>
<message>backup__restore__conflict_object_name</message>
<name>domain_name</name>
<type>backup__restore__object_domain</type>
<reasons>
<reason>
<message>backup__restore__conflict_configuration_reason_ip</message>
<resolver-message>backup__restore__conflict_configuration_reason_ip</resolver-message>
<param name="ip-address" value="XXX.XXX.XXX.XXX"/>
<param name="ip-type" value="shared"/>
<param name="name" value="backup__restore__object_plesk_admin"/>
<param name="type" value="backup__restore__object_plesk_admin"/>
</reason>
</reasons>
</object>
<object>
<message>backup__restore__conflict_object_complex_name</message>
<name>backup__restore__object_vhost</name>
<type>backup__restore__object_vhost</type>
<owner-name>domain_name</owner-name>
<reasons>
<reason>
<message>backup__restore__conflict_configuration_reason_ip</message>
<resolver-message>backup__restore__conflict_configuration_reason_ip</resolver-message>
<param name="ip-address" value="XXX.XXX.XXX.XXX"/>
<param name="ip-type" value="shared"/>
<param name="name" value="backup__restore__object_plesk_admin"/>
<param name="type" value="backup__restore__object_plesk_admin"/>
</reason>
</reasons>
</object>
</overview>
</conflict>
</conflicts-description>
Unable to resolve all conflicts
So, I created a conflict file with this content:
<?xml version="1.0" encoding="UTF-8"?>
<resolve-conflicts-task-description>
<conflict-resolution-rules>
<policy>
<timing>
<resolution>
<proceed-with-current/>
</resolution>
</timing>
<resource-usage>
<resolution>
<proceed-with-current/>
</resolution>
</resource-usage>
<configuration>
<resolution>
<automatic/>
</resolution>
</configuration>
</policy>
<rule conflict-id="0">
<resolution>
<rename new-name="ip-type:shared:ip-address:NEW_IP"/>
</resolution>
</rule>
</conflict-resolution-rules>
</resolve-conflicts-task-description>
But pleskrestore fails again:
/usr/local/psa/bin/pleskrestore --restore /backup_file -level clients -filter list:client_name -debug -conflicts-resolution /conflicts_file
Result:
close failed: [Errno 32] Broken pipe
<?xml version="1.0"?>
<conflicts-description>
<conflict id="0" guid="f09daab38d73197894e44bb6095d1023">
<type>
<configuration>
<reason-description>
<required-resource-description>
<ip type="shared" value="XXX.XXX.XXX.XXX"/>
</required-resource-description>
<plesk-object-identifier>
<type>admin</type>
<database-id>1</database-id>
<guid>d0b6a0fc-c02b-42a1-afd8-9a07df93b3a6</guid>
</plesk-object-identifier>
</reason-description>
<resolve-options>
<option name="do-not-restore"/>
<option name="rename"/>
</resolve-options>
</configuration>
</type>
<conflicting-objects>
<node name="client">
<attributes>
<attribute name="id" value="9"/>
<attribute name="guid" value="7a063d50-480e-4f2e-8acd-a3ad28740a33"/>
<attribute name="owner-guid" value="d0b6a0fc-c02b-42a1-afd8-9a07df93b3a6"/>
<attribute name="name" value="client_name"/>
</attributes>
</node>
<node name="domain">
<attributes>
<attribute name="id" value="9"/>
<attribute name="guid" value="1cd4c8e6-5ec9-4341-91b7-5d3b2f15c50f"/>
<attribute name="owner-guid" value="7a063d50-480e-4f2e-8acd-a3ad28740a33"/>
<attribute name="name" value="domain_name"/>
</attributes>
</node>
<node name="phosting">
<attributes>
<attribute name="guid" value="1cd4c8e6-5ec9-4341-91b7-5d3b2f15c50f_phosting"/>
<attribute name="owner-guid" value="1cd4c8e6-5ec9-4341-91b7-5d3b2f15c50f"/>
</attributes>
</node>
</conflicting-objects>
<overview>
<object>
<message>backup__restore__conflict_object_name</message>
<name>client_name</name>
<type>backup__restore__object_client</type>
<reasons>
<reason>
<message>backup__restore__conflict_configuration_reason_ip</message>
<resolver-message>backup__restore__conflict_configuration_reason_ip</resolver-message>
<param name="ip-address" value="XXX.XXX.XXX.XXX"/>
<param name="ip-type" value="shared"/>
<param name="name" value="backup__restore__object_plesk_admin"/>
<param name="type" value="backup__restore__object_plesk_admin"/>
</reason>
</reasons>
</object>
<object>
<message>backup__restore__conflict_object_name</message>
<name>domain_name</name>
<type>backup__restore__object_domain</type>
<reasons>
<reason>
<message>backup__restore__conflict_configuration_reason_ip</message>
<resolver-message>backup__restore__conflict_configuration_reason_ip</resolver-message>
<param name="ip-address" value="XXX.XXX.XXX.XXX"/>
<param name="ip-type" value="shared"/>
<param name="name" value="backup__restore__object_plesk_admin"/>
<param name="type" value="backup__restore__object_plesk_admin"/>
</reason>
</reasons>
</object>
<object>
<message>backup__restore__conflict_object_complex_name</message>
<name>backup__restore__object_vhost</name>
<type>backup__restore__object_vhost</type>
<owner-name>domain_name</owner-name>
<reasons>
<reason>
<message>backup__restore__conflict_configuration_reason_ip</message>
<resolver-message>backup__restore__conflict_configuration_reason_ip</resolver-message>
<param name="ip-address" value="XXX.XXX.XXX.XXX"/>
<param name="ip-type" value="shared"/>
<param name="name" value="backup__restore__object_plesk_admin"/>
<param name="type" value="backup__restore__object_plesk_admin"/>
</reason>
</reasons>
</object>
</overview>
</conflict>
</conflicts-description>
Unable to resolve all conflicts
Any ideas?
Regards,
Miguel,