[Server-devel] backup server

Martin Langhoff martin.langhoff at gmail.com
Thu Jun 25 09:24:02 EDT 2009


On Thu, Jun 25, 2009 at 3:09 PM, Rodolfo D. Arce
S.<rodolfoarce at eyuhoo.com> wrote:
> 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?

Good point. You want

 sudo -u postgres pg_dump -Fc moodle-xs > moodle-xs.pgsql

Or you can use pg_dumpall.

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