Debian Jessie上的Postgres 9.0文件系统级备份

时间:2015-11-09 16:27:31

标签: postgresql debian postgresql-9.0

我在Debian 8.2.0上尝试从我收到的文件夹中运行postgres服务器。版本是9.0.18。这是我发出的命令:

foreach (DriveInfo drive in collection)
{
   if (drive.DriveType == DriveType.CDRom)
   {
      if (drive.IsReady)
      {
         try
         {
            string filePath = drive.RootDirectory.ToString();
            string name = drive.Name;
            string fileName = Path.GetFileName(filePath);
            path = filePath + "\\" + fileName;

            if (File.Exists(path))
            {
               File.Copy(path, @"C:\Users\newfolder");
            }

            MessageBox.Show("File is copied. Please run BC 360 agai");
         }
         catch (Exception ex)
         {
            MessageBox.Show("There is some problem with copying file: \n" + ex.Message);
         }
      }
  }
}

但光标在终端中一直闪烁。我不确定发生了什么事?

由于

1 个答案:

答案 0 :(得分:0)

听起来它已经开始了,log_min_messages设置为足够高的值,你看不到任何输出。

使用另一个终端会话连接到正在运行的端口上的服务器。如果您不知道检查数据目录中port的{​​{1}}值。

通常,您应该直接使用postgresql.conf而不是pg_ctl -D blah -w start。请参阅the manual

或者,对于长期使用,将其设置为通过init脚本在启动时运行。

相关问题