初始化服务器:必须要将时间同步
数据传送:
全量备份: scp是全量备份(小而多的文件打包然后使用scp传输)
-r:递归
-p:权限
全量备份:
增量备份:
差量备份:
详情请见个人博客:https://blog.csdn.net/qq_42508901/article/details/100833961
rsync:增量备份
-a:不跳过目录
-v:显示详细内容
-z:压缩传送
–delete:相当于rm,但是必须要有一个空文件作为参照
–bwlimit=100:限制带宽
DNS域名解析:
阿里:223.5.5.5 223.6.6.6
谷歌:8.8.8.8 8.8.4.4
114.114.114.114
关闭防火墙:
[root@localhost yum.repos.d]# systemctl stop firewalld
关闭selinux防火墙:
[root@localhost yum.repos.d]# setenforce 0
[root@localhost yum.repos.d]# geten
getenforce getent
[root@localhost yum.repos.d]# getenforce
Permissive——————————————————>关闭
[root@localhost yum.repos.d]# setenforce 1
[root@localhost yum.repos.d]# getenforce
Enforcing————————————————>开启
永久关闭:在/etc/sysconfig/selinux 把enforcing改成disabled
对A—server服务端进行配置:</