﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>运维部落 &#187; rsync</title>
	<atom:link href="http://help.vps12.com/tag/rsync/feed" rel="self" type="application/rss+xml" />
	<link>https://help.vps12.com</link>
	<description>分享服务器运维及实践解决方案</description>
	<lastBuildDate>Sat, 25 Jan 2025 07:14:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>scp和rsync限制传输速度</title>
		<link>https://help.vps12.com/1630.html</link>
		<comments>https://help.vps12.com/1630.html#comments</comments>
		<pubDate>Sun, 25 Sep 2016 11:06:38 +0000</pubDate>
		<dc:creator>vps12.com</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[解决方案]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vps12.com]]></category>

		<guid isPermaLink="false">http://help.vps12.com/?p=1630</guid>
		<description><![CDATA[在linux下经常向其他服务器传输文件。有时在总带宽的限制下。不可能时时跑满占用带宽。这种情况下我们就需要对传输进行一定的限制和自定义。以下写出两个经常使用的传输命令的参数，希望对大家有一定帮助。 1.scp 限速100KB/s scp -l 1000 testfiles root@192.168.1.108 此时的传输速率就是1M/8=100KB左右 2.rsync 限速100KB/s rsync -auvzP &#8211;bwlimit=100 本地文件 远程文件 参数说明： v：详细提示 a：以archive模式操作，复制目录、符号连接，等价于 -rlptgoD 。 z：压缩 u：只进行更新，防止本地新文件被重写，注意两者机器的时钟的同时 P：是综合了&#8211;partial &#8211;progress两个参数， 此时的rsync支持了断点续传。 通常情况下。大文件，我建议大家使用rsync。因为有断点续传。可以有更好的选择。]]></description>
		<wfw:commentRss>https://help.vps12.com/1630.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下使用rsync最快速删除海量文件的方法</title>
		<link>https://help.vps12.com/296.html</link>
		<comments>https://help.vps12.com/296.html#comments</comments>
		<pubDate>Tue, 10 Jan 2012 12:43:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[rm]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[vps12.com]]></category>
		<category><![CDATA[删除]]></category>

		<guid isPermaLink="false">http://blog.vps12.com/?p=296</guid>
		<description><![CDATA[在删除数十万个文件时我们常用的删除命令rm -fr * 就不好用了，因为要等待的时间太长。 所以必须要采取一些非常手段。我们可以使用rsysnc来实现快速删除大量文件。 例如我们要删除/delrmdir/ 目录。那我们按以下步骤来操作。 1、先安装rsync： ?View Code SHELL1 yum install rsync 2、建立一个空的文件夹： ?View Code SHELL1 mkdir /root/code/ 3、用rsync删除目标目录： ?View Code SHELL1 rsync --delete-before -a -H -v --progress --stats /root/code/ /delrmdir/ 这样我们要删除的delrmdir目录就会被清空了，删除的速度会非常快。]]></description>
		<wfw:commentRss>https://help.vps12.com/296.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
