ITPub博客

首页 > Linux操作系统 > Linux操作系统 > PostgreSQL归档日志配置

PostgreSQL归档日志配置

Linux操作系统 作者:luckyfriends 时间:2014-11-12 11:34:48 1 删除 编辑

环境: windows sever 2003 , postgresql 8.4

在PostgreSQL的安装目录下找到postgresql.conf文件,将其中的archive_mode , archive_command 修改为如下:

# - Archiving -

archive_mode = on  # allows archiving to be done
    # (change requires restart)

archive_command = 'copy "%p" D:\\program\\postgresql_archivedlog\\"%f"'  # command to use to archive a logfile segment

archive_timeout = 600  # force a logfile segment switch after this
    # number of seconds; 0 disables

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/14710393/viewspace-1329513/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
长期从事IT相关工作。

注册时间:2009-06-06

  • 博文量
    465
  • 访问量
    3307691