You approach seems acceptable to me.
password of any existing users. This could of course be made
configurable.
Post by Jens Ãstergaard PetersenHi,
I am reposting this from more than a week ago. Could someone tell me if this
is an acceptable way to restore a database dump you, for instance, do not
know the admin password for?
Cheers,
Jens
Subject: Re: [Exist-open] Beginner question on db restore
Hi Rob,
This is not really a straight answer, since I have questions about this as
well, but here is my take on your question.
When you do a restore, importing a zip file using the java admin client,
what is inside the backup will overwrite what is in identical positions on
the live system. What is not in identical positions will be left as it is.
If you have a full backup of /db, this backup will include
/db/system/users.xml and /db/security/exist/accounts. If you restore such a
backup, the information on users and passwords on your live system will be
overwritten by the information on users and passwords on the system backed
up.
If you are restoring another user's backup, you will then have to
authenticate with the other user's credentials when logging in. - I was
myself trapped by this, since I unthinkingly imported the backup posted to
the list by Alem Areki on the day of your posting - and was locked out of my
database as a result (but I had a full backup of my installation, so
everything is cool).
On <http://exist-db.org/backup.html#d1864e846>, the restore process is
"Restoring from a backup (or parts of it) does not mean that the existing
data in the current database instance will be deleted entirely. The restore
process will upload the collections and documents contained in the backup.
Collections and documents which exist in the database but are not part of
the backup will not be modified."
What I _believe_ you should do (but don't take my word for it!) is to unzip
the backup, remove /db/system/users.xml and /db/security/. You should then
remove the information relating to the document "users.xml" and the
"security" collection from the /db/system/__contents__.xml file. Finally,
you should zip the db directory again and do the restore. You can then log
in with your own credentials.
You don't have to zip; if you don't, follow the instructions on
<http://exist-db.org/backup.html#d1864e900>, choosing "__content.xml__
files" in the File Format drop-down menu and selecting the uppermost
__content.xml__ file.
The last thing I want to do is to give security-related advice, so until
someone more knowledgable OKs this, you should not do anything!
Best,
Jens
Post by Robert HanHi all,
Pardon for the beginner question. I recently did a restore from a back-up
of an eXist from another PC user. After restoring, my existing username
and password won't work, do I need to use the ID/Pasword from that
instance of eXist?
Thanks!
Rob
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev_______________________________________________
Exist-open mailing list
https://lists.sourceforge.net/lists/listinfo/exist-open
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Exist-open mailing list
https://lists.sourceforge.net/lists/listinfo/exist-open