• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

What is included in the plesk backup?

Z

ziggie216

Guest
is everything releated to the domain including mail and sql database or just /home/httpd/vhosts/<domain>?
 
Everithing.

To see details use psa/bin/backup-unpack list <backup.file>
 
# /usr/local/psa/bin/backup-unpack list /var/lib/psa/dumps/2/4/domain.com_2006.12.06_12.23

Runtime error: NamedNodeMap instance has no attribute 'has_key'

what is that suppose to mean?
 
Patch /usr/local/psa/admin/share/backup_unpack/dump_walker.py with given patch:

Code:
--- dump_walker.py
+++ dump_walker.py
@@ -6,6 +6,12 @@
         if n.nodeType == xml.dom.minidom.Node.ELEMENT_NODE:
             yield n
 
+def getAttr(x, name):
+    for i in range(x.attributes.length):
+        if x.attributes.item(i) == name:
+            return x.attributes.item(i).value
+    return None
+
 def childElementsName(x, name):
     for n in childElements(x):
         if n.nodeName == name:
@@ -26,8 +32,8 @@
         return ""
 
 def _parseCustomButton(object, c, prefix = None):
-    if c.attributes.has_key("cid-icon"):
-        cid = c.attributes["cid-icon"].value
+    cid = getAttr(c, "cid-icon")
+    if None != cid:
         buttonName = c.attributes["text"].value.replace("/", "_")
         if prefix:
             prefix = prefix + "-"
@@ -36,8 +42,8 @@
         object._addCid(cid, "%sicon-%s.tar%s" % (prefix, buttonName, _ext(cid)))
 
 def _addCidIfAttribute(object, x, attributeName, fileName):
-    if x.attributes.has_key(attributeName):
-        cid = x.attributes[attributeName].value
+    cid = getAttr(x, attributeName)
+    if None != cid:
         object._addCid(cid, fileName + _ext(cid))
 
 class PleskObject(object):
@@ -58,8 +64,8 @@
 class Client(PleskObject):
     def __init__(self, x):
         PleskObject.__init__(self, "client", x.attributes["name"].value)
-        if x.attributes.has_key("cid-skeleton"):
-            cid = x.attributes["cid-skeleton"].value
+        cid = getAttr(x, "cid-skeleton")
+        if None != cid:
             self._addCid(cid, "skeleton.tar" + _ext(cid))
         for c in childElementsName(x, "custom-button"):
             _parseCustomButton(self, c)
 
This is exactly the problem I am having.

I'm trying to extract a single database and the rest is as above.

How do apply the patch?

I've never done a patch before - I've tried copying the above patch code into a new file called dump_walker.patch.py and backed up the original dump_walker.py and then:
cat dump_walker.patch.py | patch dump_walker.py

but this just throws an error:
patch: **** Only garbage was found in the patch input.

Any pointers?

====================

Oops!

Sorry, I pasted the text from above into the patch file but didn't save it!

After successfully patching the python file the "list" command of the backup-unpack tool works, now to see how I can extract the database.....
 
Okay - so when I use the "extract" command with the backup-unpack tool it just gives me a load of xml files - WHERE IS MY DATABASE!

:mad: :mad: :mad: :mad: :mad: :mad: :mad:
 
In my case it is:

# /usr/local/psa/bin/backup-unpack list /var/lib/psa/dumps/1/1/database.domain.com_2006.08.27_07.49
[domain database.domain.com]
[mailname [email protected]]
[database db1@localhost:5432/postgresql]

# /usr/local/psa/bin/backup-unpack -v extract database db1.postgresql /var/lib/psa/dumps/1/1/database.domain.com_2006.08.27_07.49
[database db1@localhost:5432/postgresql] -planned-> database-db1@localhost-5432-postgresql
db1.postgresql ~~> database-db1@localhost-5432-postgresql/dump.sql
>> database.domain.com_2006.08.27_07.49.unpacked/database-db1@localhost-5432-postgresql
IGN [email protected]
IGN [email protected]ch
db1.postgresql -> database.domain.com_2006.08.27_07.49.unpacked/database-db1@localhost-5432-postgresql/dump.sql

# ls database.domain.com_2006.08.27_07.49.unpacked/database-db1\@localhost-5432-postgresql/
description.xml dump.sql
 
Back
Top