阿里云postgreSQL数据库逻辑备份
一、创建阿里云存储网关参考链接:https://help.aliyun.com/document_detail/108244.html 注意购买OSS bucket的区域与数据库实例所在的区域不同。 二、在与存储网关同一区域的ECS机器上面,挂载存储网关:mount.nfs x.x.x.x:/shares /ossx.x.x.x:/shares是网关的挂载点,/oss为本地目录参考链接:https://help.aliyun.com/document_detail/108284.html最好将nfs挂载点也写入/etc/fstab文件,重启自动挂载。 三、在ECS机器上安装postgreSQL备份工具1、https://www.postgresql.org/ftp/source/ 下载相应的数据库版本(与云rds版本相近) 2、解压、安装编译安装目录为:/usr/local/pgsql/gunzip postgresql-10.1.tar.gztar xf postgresql-10.1.tar./configure --prefix=/usr/local/pgsql/makemake...