数据库
文章平均质量分 92
数据库:mysql,postgresql,redis,mongodb
kaiqiu666
这个作者很懒,什么都没留下…
展开
-
postgresql冷备份
每日冷备份,并自动删除 7 日以前的备份,建议对热备份数据进行备份环境:centos7192.168.0.20:15432 ( 备份库,读库)1 创建备份目录mkdir -p /home/data/backup/2 编写备份脚本vim /home/data/backup/backup_script.shcur_time=$(date '+%Y-%m-%d')sevendays_t...转载 2020-03-09 16:48:40 · 503 阅读 · 0 评论 -
postgresql 12 安装,热备份,读写分离
主备需要数据库版本一致环境:192.168.0.21:5432 (主库)192.168.0.20:15432 ( 备份库)centos71 postgresql 安装yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.r...原创 2020-03-06 16:19:35 · 1632 阅读 · 2 评论