(一)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
分享到:
相关推荐
163的镜像文件CentOS6-Base-163.repo。CentOS6-Base-163.repo
Centos-6-Vault-Aliyun.repo
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 ...
【标题】"(CentOS7镜像)CentOS-7-x86-64-Minimal-2009.rar" 提供的是一个基于Linux发行版的CentOS 7的最小化安装镜像,适用于创建虚拟机环境。这个版本特别针对系统管理员和开发者设计,包含了运行操作系统最基本...
Txt文件中包含 CentOS-6.3-i386-bin-DVD1.iso 和 CentOS-6.3-i386-bin-DVD2.iso 的官网下载地址 和百度网盘下载地址
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 ...
pgdg-centos96-9.6-3.noarch postgresql的依赖包postgresql的依赖包
CentOS-6.6-x86_64-bin-DVD1.iso和CentOS-6.6-x86_64-bin-DVD2镜像文件百度云下载
内容: 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包
标题中提到的“Centos7.6镜像文件:CentOS-7-x86_64-DVD-1810.iso”,首先需要明确几个关键词。CentOS 是一个企业级 Linux 发行版,它是基于 Red Hat Enterprise Linux (RHEL) 源代码编译而成的。CentOS 7.6 指的是 ...
centos7.6.1810---镜像包dockercentos7.6.1810---镜像包dockercentos7.6.1810---镜像包docker
CentOS-6.1-x86_64-bin-DVD1.iso CentOS-7-x86_64-bin-DVD2.iso CentOS-8.2-x86_64-bin-DVD1.iso 除DVD版还有各个minimal等版本提供高速下载 下载地址,提供了迅雷的高速下载通道,实测速度为31M/S,
CentOS-7-x86_64-Minimal-2009.iso是一个针对x86_64架构系统的CentOS 7版本的ISO镜像文件。它包含了运行CentOS操作系统所需的最基本组件和软件包,相较于完整版或桌面版,它没有预装许多额外的应用程序和图形界面,...
CentOS-6.1-x86_64-bin-DVD1.iso CentOS-7-x86_64-bin-DVD2.iso CentOS-8.2-x86_64-bin-DVD1.iso 除DVD版还有各个minimal等版本提供高速下载 下载地址,提供了迅雷的高速下载通道,实测速度为31M/S,
CentOS-7-x86-64-DVD-2009.iso
CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包)CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包)CentOS6-Mysql-5.7.28-离线安装包(含依赖安装包)
centos7.4 postgresql11-11.8 rpm 安装包,centos7.4 postgresql11-11.8 rpm 安装包,centos7.4 postgresql11-11.8 rpm 安装包,centos7.4 postgresql11-11.8 rpm 安装包
标题中的"CentOS-7-x86_64-Minimal-1810.iso"指的是CentOS操作系统的一个特定版本,这是一个Linux发行版,主要用于服务器和高级用户。"x86_64"表示该版本是为64位架构设计的,而"Minimal"则意味着这个安装镜像是精简...
centos-release-7-6.1810.2.el7.centos.x86_64.rpm包 命令主要是针对将 centos7.9版本降级到centos7.6,其他版本也可以参考降底版本到7.6,包含操作命令