On Wed, Jun 24, 2009 at 8:18 PM, Rodolfo D. Arce S. <span dir="ltr"><<a href="mailto:rodolfoarce@eyuhoo.com">rodolfoarce@eyuhoo.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What should be backed up for a reintallation of the server? Or better<br>
yet, what would be the steps for backup and restore of the XS?</blockquote><div><br>Good question!<br><br>In general, I would say that you want to backup<br><br> - /library<br> - /home/idmgr<br> - /var/lib/moodle<br> <br>
But I haven't reviewed it thoroughly, so there may be some stray bits landing elsewhere. I will be happy to merge patches that move all those things to /library :-)<br><br>One thing is tricky though: the mapping of the users described in the idmgr DB to UIDs. Right now it is only in /etc/passwd so you are right, it should be backed up. On restore, you will want to "restore" only part of the passwd file to the restored system though.<br>
<br>To make this work better, the idmrg scripts should be updated to <br> - put the uid of the user somewhere in the DB when the user is created<br> - have a 'rebuild' script that re-creates the proper OS user accts based on the user/uid mapping (with due care to avoid priv escalation tricks!)<br>
<br>Do you think you could file a task in trac for for this, so I remember? Actually, 2: one for idmgr, one for moodle.<br><br>cheers,<br></div><br></div><br clear="all"><br>m<br>-- <br> <a href="mailto:martin.langhoff@gmail.com">martin.langhoff@gmail.com</a><br>
<a href="mailto:martin@laptop.org">martin@laptop.org</a> -- School Server Architect<br> - ask interesting questions<br> - don't get distracted with shiny stuff - working code first<br> - <a href="http://wiki.laptop.org/go/User:Martinlanghoff">http://wiki.laptop.org/go/User:Martinlanghoff</a><br>