<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 5, 2016 at 7:05 AM, Martin Petersson <span dir="ltr"><<a href="mailto:martin@uanet.se" target="_blank">martin@uanet.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Then i tried:</div>
<div>
<div>root@rt:~# su postgresĀ </div>
<div>postgres@rt:/root$ pg_dump rtdb > rtdb-backup</div>
<div>bash: rtdb-backup: Access denied</div>
<div><br>
</div>
<div>What do i have to do to create a backup of the database?</div></div></blockquote></div><br></div><div class="gmail_extra">Not be in roots home directory when you run pg_dump.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">--<br>Later,<br>Darin</div></div>
</div></div>