Sorry Greg never responded on this but indeed that works :)

(needed it again ;))

Op vrijdag 29 mei 2015 01:27:21 UTC+2 schreef Craig White:
>
> If the perms are 777, it really doesn't matter who the user/group is.
>
> Likely the path to get there... /var/lib/pgsql/backups/ don't permit the 
> user running foreman descend access. Try copying the file to /tmp
>
> On Thursday, May 28, 2015 at 2:31:32 PM UTC-7, [email protected] wrote:
>>
>> HI guys,
>>
>> I'm having some trouble importing a test backup which I also dumped with 
>> the normal pgsql commands; this is what happens as foreman user:
>>
>> bash-4.1$ foreman-rake db:import_dump 
>> file=/var/lib/pgsql/backups/foreman_28052015_2156.dump
>> Your backup is going to be imported from: 
>> /var/lib/pgsql/backups/foreman_28052015_2156.dump
>> pg_restore: [archiver] could not open input file 
>> "/var/lib/pgsql/backups/foreman_28052015_2156.dump": Permission denied
>> pg_restore: [archiver] could not open input file 
>> "/var/lib/pgsql/backups/foreman_28052015_2156.dump": Permission denied
>>
>>
>> I tried to give the file a chmod of 777, user foreman:foreman, 
>> postgres:postgres, same issue every time.
>>
>> Has anyone an idea about this ?
>>
>> Thanks!
>>
>> Matt
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to