postgresql启用归档
2016-02-05 15:49
459 查看
To enable WAL archiving, set the wal_level configuration parameter to archive or higher, archive_mode to on, and specify the shell command to use in the archive_command configuration parameter. In practice these settings will always be placed in
the postgresql.conf file. In archive_command, %p is replaced by the path name of the file to archive, while %f is replaced by only the file name. (The path name is relative to the current working directory, i.e., the cluster's data directory.)
Use %% if you need to embed an actual % character in the command. The simplest useful command is something like:
archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f' # Unix
archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
the postgresql.conf file. In archive_command, %p is replaced by the path name of the file to archive, while %f is replaced by only the file name. (The path name is relative to the current working directory, i.e., the cluster's data directory.)
Use %% if you need to embed an actual % character in the command. The simplest useful command is something like:
archive_command = 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f' # Unix
archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
相关文章推荐
- oracle 11g em配置数据库
- 主从数据库架构
- 初始化mysql 用户的密码
- cron任务执行oracle冷备提示:Invalid format of Export utility name
- 数据库密码重制
- sql获取全部表名,并表内字段名
- 数据库同步程序设计与实现
- 如何把SQLServer数据库从高版本降级到低版本?
- [转] MySQL5绿色版安装教程
- win10、win7系统64位oracle11g安装教程以及32位plsql连接教程
- oracle 创建数据库时 Enterprise Manager 配置失败
- 棋牌游戏服务器架构: 详细设计(三) 数据库设计
- 如何从把mysql的数据迁移到oracle上来---------Oracle SQL Developer技术
- mysql sql语句大全
- oracle的oraclebulkcopy的使用
- mysql 快速入门
- sql server 基本操作二
- #Memcached系列#(6)使用Enyim.Caching访问Memcached的一个C#控制台程序
- MySql用户忘记密码时解决办法
- ios 将随意对象存进数据库