archive_mode = on archive_command = 'test ! -f /mnt/pg12/archivedir/%f && cp %p /mnt/pg12/archivedir/%f'
archive_mode = on archive_command = 'copy "%p" "C:\\server\\pg12\\archivedir\\%f" '
注意:修改后需要重启才能生效!!!