1.安装sersync sersync详细介绍请看http://hi.baidu.com/johntech/item/a4a2060ecf3053c6905718e1 sersync下载地址http://code.google.com/p/sersync/downloads/list tar xf sersync2.5.4_64bit_binary_stable_fin
1.rsync特性 可以镜像保存整个目录树和文件系统 可以增量同步数据,文件传输效率高,同步时间短 可以保持原有文件的权限、时间等属性 可以通过ssh加密传输 支持匿名传输 2.利用rsync搭建远程备份系统 a:192.168.21.132(rsync服务器) b:192.168.21.131(客户端) 配置服务端(a机器): vim /etc/rsyncd.conf &n
#!/usr/bin/python import pexpect import getpass remote_path=raw_input('remote_path: ') local_file=raw_input('local_file: ') passwd=getpass.getpass(
#!/usr/bin/python import pexpect import getpass host=raw_input('hostname: ') remote_path=raw_input('remote_path: ') local_file=raw_input('loca
#!/usr/bin/python import ftplib host='192.168.1.116' dir='/printer' file='S28BW-412110613520.pdf' username='pub' passwd='hoolai' def main(): &nbs
由于公司的游戏服务器数据库一部分用的是redis,所以闲下来研究下 1.安装 wget http://redis.googlecode.com/files/redis-2.4.17.tar.gz tar xf redis-2.4.17.tar.gz make make install cp redis.conf /etc/ 这样redis就安装好了。 启动redis:redis-s
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号