[英]pg_dumpall > alldb.sql output bash: alldb.sql: Permission denied
Im trying to take all backup by running these as superuser ie postgres but 我试图通过以超级用户身份运行这些备份来获取所有备份,即postgres,但
pg_dumpall > alldb.sql
bash: alldb.sql: Permission denied
pg_dumpall works but give backup as text in terminal pg_dumpall可以,但是在终端中以文本形式进行备份
made changes in pg_hba.conf 在pg_hba.conf中进行了更改
This has nothing to do with pg_dumpall
or pg_hba
. 这与
pg_dumpall
或pg_hba
没有pg_hba
。 It is just the shell complaining that it cannot write to the current directory. 只是外壳程序抱怨它无法写入当前目录。 Try another directory to put your file into, for example:
尝试使用另一个目录将文件放入其中,例如:
pg_dumpall > /tmp/alldb.sql
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.