<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Rsync on Margrop Blog</title>
		<link>https://blog.margrop.net/en/tag/rsync/</link>
		<description>Recent content in Rsync on Margrop Blog</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Sat, 11 Jul 2026 13:30:00 +0800</lastBuildDate>
		
			<atom:link href="https://blog.margrop.net/en/tag/rsync/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Stop Running rsync Blindly: Preview Differences Before a Safe Incremental Sync</title>
				<link>https://blog.margrop.net/en/post/rsync-diff-incremental-sync/</link>
				<pubDate>Sat, 11 Jul 2026 13:30:00 +0800</pubDate>
				<guid>https://blog.margrop.net/en/post/rsync-diff-incremental-sync/</guid>
				<description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;The short answer&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The best rsync habit is not memorizing more switches. It is separating every risky job into two stages: &lt;strong&gt;generate a dry-run plan first, review it, and only then perform the real incremental sync&lt;/strong&gt;. Deletion should be a separate, explicit permission rather than a hidden default.&lt;/p&gt;&#xA;&lt;p&gt;The common &lt;code&gt;rsync -n -avz --delete --out-format=&amp;quot;%n&amp;quot;&lt;/code&gt; pattern can list paths that may change, but &lt;code&gt;%n&lt;/code&gt; only preserves the name. A safer machine-readable plan uses &lt;code&gt;--itemize-changes&lt;/code&gt; together with &lt;code&gt;%i&lt;/code&gt;, so each line identifies an addition, update, deletion, or metadata change.&lt;/p&gt;&#xA;&lt;/blockquote&gt;</description>
			</item>
	</channel>
</rss>
