(一)rsync
Server端
# yum install rsync
# vi /etc/xinetd.d/rsync
service rsync
{
disable = no
flags = IPv6
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
# vi /etc/rsyncd.conf
#--------------
# Global options
#--------------
uid = root
gid = root
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
hosts allow = 192.168.21.0/24
hosts deny = *
dont compress = *.gz *.tgz *.zip *.pdf *.sit *.sitx *.lzh *.bz2 *.jpg *.gif *.png
#--------------
# Module options
#--------------
[tmp]
comment = rsync server
path = /tmp/rsync_folder
use chroot = true
auth users = rsync_user1, rsync_user2
secrets file = /etc/rsyncd.secrets
read only = false
exclude = *.mp
include = *.mp30
# mkdir -p /tmp/rsync_folder
# vi /tmp/rsync_folder/a.txt
test
# vi /etc/rsyncd.secrets
rsync_user1:password
rsync_user2:password
# chmod 600 /etc/rsyncd.secrets
# service xinetd restart
Client端
# yum install rsync
# vi /etc/rsync.passwd
password
# chmod 600 /etc/rsync.passwd
确认
# /usr/bin/rsync -avz --delete --password-file=/etc/rsync.passwd rsync://rsync_user1@192.168.21.140/tmp /usr/local/rsynctest
receiving incremental file list
./
a.txt
sent 82 bytes received 156 bytes 476.00 bytes/sec
total size is 5 speedup is 0.02
# ls -l /usr/local/rsynctest
定期同步
# crontab -e
#每5分钟同步
*/5 * * * * /usr/bin/rsync -avz --delete --password-file=/etc/rsync.passwd rsync://rsync_user1@192.168.21.140/tmp /usr/local/rsynctest
(二)Amanda
安装
# yum list | grep "^amanda"
2.6.1p2-9.el6_6 版本比较旧
# yum install amanda
安装3.3.7
# cd /usr/local/src
# wget http://www.zmanda.com/downloads/community/Amanda/3.3.7/Source/amanda-3.3.7-1.rhel6.src.rpm
# rpm -Uvh amanda-3.3.7-1.rhel6.src.rpm
Server端
# vi /etc/hosts
# amanda server端设置
192.168.21.91 amcnt
# vi /var/lib/amanda/.amandahosts
# amanda server端设置
amcnt root amindexd amidxtaped #restore用
amcnt amandabackup amdump #backup用
# mkdir -R /etc/amanda/demo
# cd /etc/amanda/demo
# cp /var/lib/amanda/example/amanda.conf .
# vi disklist
amsrv /usr/data comp-user-tar
# vi /etc/xinetd.d/amanda
disable = no
# /etc/init.d/xinetd restart
Client端
# vi /etc/hosts
# amanda client端设置
192.168.21.90 amsrv
# vi /var/lib/amanda/.amandahosts
# amanda client端设置
amsrv amandabackup amdump
# mkdir -R /etc/amanda/demo
# cd /etc/amanda/demo
# vi amanda-client.conf
conf "demo" # server端设置的名称
index_server "amsrv"
tape_server "amsrv"
tapedev "file:/var/lib/amanda/vtl"
auth "bsdtcp"
ssh_keys ""
unreserved-tcp-port 1025,65535
# vi /etc/xinetd.d/amanda
disable = no
# /etc/init.d/xinetd restart
定期同步
# crontab -e
45 0 * * 2-6 /usr/sbin/amdump demo
分享到:
相关推荐
CentOS6-Base-163.repo更新源,直接放到/etc/yum.repos.d目录下,只想yum update即可将源换成163的源。
CentOS-7.2-x86_64-DVD-1511 CentOS-7.3-x86_64-DVD-1611 CentOS-7.4-x86_64-DVD-1708 CentOS-7.5-x86_64-DVD-1804 CentOS-7.6-aarch64-Everything-1810 CentOS-7.6-x86_64-DVD-1810 CentOS-7.7-x86_64-DVD-1908 ...
pgdg-centos96-9.6-3.noarch postgresql的依赖包postgresql的依赖包
centos7下centos-release-openstack-pike
# CentOS-7-x86_64-DVD-1810.iso CentOS 7.6 DVD 版 4G http://mirrors.163.com/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso # CentOS-7-x86_64-Everything-1810.iso CentOS 7.6 Everything版 10G ...
centos7.6.1810---镜像包dockercentos7.6.1810---镜像包dockercentos7.6.1810---镜像包docker
内容: 1、centos 6 安装 mantisbt-1.2.8 ; 2、 centos 7 安装 mantisbt-2.12.0.zip 3、mantisbt-2.12.0.tar.gz包; 4、MySQL-5.5.59-1.el7.x86_64.rpm-bundle.tar包
CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包)CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包)CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包)
CentOS-6.6-x86_64-bin-DVD1.iso和CentOS-6.6-x86_64-bin-DVD2镜像文件百度云下载
centos7.4 postgresql11-11.8 rpm 安装包,centos7.4 postgresql11-11.8 rpm 安装包,centos7.4 postgresql11-11.8 rpm 安装包,centos7.4 postgresql11-11.8 rpm 安装包
Txt文件中包含 CentOS-6.3-i386-bin-DVD1.iso 和 CentOS-6.3-i386-bin-DVD2.iso 的官网下载地址 和百度网盘下载地址
centos6-iptables-1.4.7-16.el6.x86-64
CentOS7-Base-163.repo,替换国内yum源。(地方撒发生的发顺丰达是打发斯蒂芬放松放松防守打法电风扇放松放)括号中的字是凑字数
CentOS是免费的、开源的、可以重新分发的开源操作系统,CentOS(Community Enterprise Operating System,中文意思是社区企业操作系统)是Linux发行版之一。...CentOS-7-aarch64-Minimal-2009适用于ARM64 (aarch64)
Centos-6-Vault-Aliyun.repo
CentOS-7-x86_64-Minimal-1810.iso镜像文件
centos-release-7-6.1810.2.el7.centos.x86_64.rpm包 命令主要是针对将 centos7.9版本降级到centos7.6,其他版本也可以参考降底版本到7.6,包含操作命令