[Server-devel] backup server

Rodolfo D. Arce S. rodolfoarce at eyuhoo.com
Thu Jun 25 09:09:28 EDT 2009


The moodle directory is /var/lib/moodle, that's for the files and
data, but the database, could that be backed up as a binary database
file? i had some expriences with mysql (not ps-sql) that didn't work
so well, should and "export" of the database work better for that?

cheers.. R

On Thu, Jun 25, 2009 at 4:15 AM, Martin
Langhoff<martin.langhoff at gmail.com> wrote:
> On Wed, Jun 24, 2009 at 8:18 PM, Rodolfo D. Arce S. <rodolfoarce at eyuhoo.com>
> wrote:
>>
>> What should be backed up for a reintallation of the server? Or better
>> yet, what would be the steps for backup and restore of the XS?
>
> Good question!
>
> In general, I would say that you want to backup
>
>  - /library
>  - /home/idmgr
>  - /var/lib/moodle
>
> 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 :-)
>
> 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.
>
> To make this work better, the idmrg scripts should be updated to
>  - put the uid of the user somewhere in the DB when the user is created
>  - 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!)
>
> Do you think you could file a task in trac for for this, so I remember?
> Actually, 2: one for idmgr, one for moodle.
>
> cheers,
>
>
>
> m
> --
> martin.langhoff at gmail.com
> martin at laptop.org -- School Server Architect
> - ask interesting questions
> - don't get distracted with shiny stuff  - working code first
> - http://wiki.laptop.org/go/User:Martinlanghoff
>


More information about the Server-devel mailing list