gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] Restoring a database under Debian


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] Restoring a database under Debian
Date: Thu, 15 Jan 2015 10:00:37 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Thu, Jan 15, 2015 at 08:37:28AM +0000, Jim Busser wrote:

> >> but maybe the problem is at the level of the directory that *encloses* the 
> >> above .sql files:
> >> 
> >>    drwxr-xr-x 3 root root 4096 Jan 14 20:59 .
> >>    drwx------ 5 root root 4096 Jan 14 20:59 ..
> >>    drwxr-xr-x 2 root root 4096 Jan 14 20:59 gm-restore_2015-01-14_20-59-11
> > 
> > Indeed, ".." (that is, /root/gnumed) needs to at least have drwxr-xr-x)
> 
> In a note of partial relief, I was able to restore my v19 under Mac OS with 
> Enterprise DB and Postgres 9.3 and for reasons I am not sure why the 
> permissions of my enclosing folder (double dot .. ) when I performed the 
> restore on Mac OS were so:
> 
>       drwxr-xrwx
> 
> output of
> 
>       ls -al
> 
> below.
> 
> MacBook-2:bootstrap root# ls -al 
> /gnumed-server.19.8/server/Users/djb/gnumed/gm-restore_2015-01-14_22-18-17 
> total 748720
> drwxr-xr-x   4 root  wheel        136 14 Jan 22:18 .
> drwxr-xrwx  14 root  wheel        476 14 Jan 23:30 ..
> -rw-r--r--   1 root  djb    383338223 12 Jan 10:00 
> backup-gnumed_v19-GNUmed_Team-dhcp-128-189-241-105.ubcsecure.wireless.ubc.ca-2015-01-12-09-59-25-database.sql
> -rw-r--r--   1 root  djb          527 14 Jan 22:18 
> backup-gnumed_v19-GNUmed_Team-dhcp-128-189-241-105.ubcsecure.wireless.ubc.ca-2015-01-12-09-59-25-roles.sql

That should work, yes.

After restoring, did you see any other problems (say, running 
gm-adjust_db_settings.sh) ?

Also, restoring the roles likely didn't do everything quite
right, which may not matter, however, since you restored into
a PostgreSQL cluster which did have a working GNUmed
installation (and likely had, of gnumed_v17).

Karsten
-- 
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

[Prev in Thread] Current Thread [Next in Thread]