简体   繁体   English

为什么 rsync 命令到 postgres 升级副本正在复制数据文件夹大小增加磁盘空间

[英]why rsync command to postgres upgrade replica are duplicating data folder size increasing disc space

I'm following this doc https://www.postgresql.org/docs/current/pgupgrade.html to upgrade my cluster postgres an its replica, but when I run the rsync command, it duplicate the data folder, consuming all the disk space crashing the rsync.我正在关注此文档https://www.postgresql.org/docs/current/pgupgrade.html以升级我的集群 postgres 命令,它复制了它的数据文件夹,当我运行我的集群 postgres 命令时,它复制了它的副本,但数据文件夹空间使 rsync 崩溃。 Here is the rsync command "rsync --archive --delete --hard-links --size-only --no-inc-recursive old_cluster new_cluster remote_dir".这是 rsync 命令“rsync --archive --delete --hard-links --size-only --no-inc-recursive old_cluster new_cluster remote_dir”。 Any thoughts?有什么想法吗?

The problem was the alignment of directories, due to the difference between origin and destination it ended up getting lost and copying everything.问题是目录的 alignment,由于起点和终点之间的差异,它最终会丢失并复制所有内容。 well succeeded command: "rsync --exclude pg_wal --archive --delete --hard-links --size-only --no-inc-recursive /pgdata/homologacao/11 /pgdata/homologacao/14 hom-replica:/pgdata/homologacao"成功的命令: “rsync --exclude pg_wal --archive --delete --hard-links --size-only --no-inc-recursive /pgdata/homologacao/11 /pgdata/homologacao/14 hom-replica:/ pgdata/homologacao"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM