2018-11-18发表2023-03-17更新jdbc1 分钟读完 (大约123个字)jdyc备份服务器搭建搭建服务器过程 12345678910111213141516171819* Server1. 创建CentOS7服务器2. 创建备份目录mkdir /home/logsbackup3. 将本地地址映射出去* Clientssh-keygen -t rsa -P ''ssh-copy-id -i ~/.ssh/id_rsa.pub 1.1.1.1vim /root/sh/logsbackup.sh #!/bin/bash # cd /usr/local/logs tar -zcf netty.log-$(date -d yesterday +%Y-%m-%d).tar.gz netty.log-$(date -d yesterday +%Y-%m-%d).*.log scp -P 3999 netty.log-$(date -d yesterday +%Y-%m-%d).tar.gz 1.1.1.1:/home/logsbackup rm -rf netty.log-$(date -d yesterday +%Y-%m-%d).*.log echo $(date +%Y-%m-%d-%T) >> /root/sh/logsbackup.txt crontab -e 0 1 * * * /bin/bash /root/sh/logsbackup.sh jdyc备份服务器搭建https://python0.netlify.app/2018/11/18/jdyc备份服务器搭建/作者John Doe发布于2018-11-18更新于2023-03-17许可协议#jdbc