<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2Frsync</id>
	<title>Linux/rsync - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2Frsync"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/rsync&amp;action=history"/>
	<updated>2026-04-30T11:56:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Linux/rsync&amp;diff=9669&amp;oldid=prev</id>
		<title>Kenneth: /* keywords */</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/rsync&amp;diff=9669&amp;oldid=prev"/>
		<updated>2026-03-17T19:42:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;keywords&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:42, 17 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l175&quot;&gt;Line 175:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 175:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Everything Linux - A Tutorial on Using Rsync - http://everythinglinux.org/rsync/&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Everything Linux - A Tutorial on Using Rsync - http://everythinglinux.org/rsync/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Set up an Rsync Daemon on your Linux server | Atlantic.Net Community - https://www.atlantic.net/community/howto/setup-rsync-daemon/&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Set up an Rsync Daemon on your Linux server | Atlantic.Net Community - https://www.atlantic.net/community/howto/setup-rsync-daemon/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== rsync for Windows ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;See [[Windows/rsync]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== keywords ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== keywords ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Linux]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Linux]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
	<entry>
		<id>https://aznot.com/index.php?title=Linux/rsync&amp;diff=3882&amp;oldid=prev</id>
		<title>Kenneth: /* rsync server */</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/rsync&amp;diff=3882&amp;oldid=prev"/>
		<updated>2016-11-30T21:44:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;rsync server&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== rsync ==&lt;br /&gt;
&lt;br /&gt;
[http://rsync.samba.org/ rsync]&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;rsync is a software application for Unix systems which synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate. An important feature of rsync not found in most similar programs/protocols is that the mirroring takes place with only one transmission in each direction. rsync can copy or display directory contents and copy files, optionally using compression and recursion.&lt;br /&gt;
&lt;br /&gt;
In daemon mode, rsync listens to the default TCP port of 873, serving files in the native rsync protocol or via a remote shell such as RSH or SSH. In the latter case, the rsync client executable must be installed on both the local and the remote host.&lt;br /&gt;
&lt;br /&gt;
Released under the GNU General Public License, rsync is free software.&amp;quot; ([http://en.wikipedia.org/wiki/Rsync rsync - Wikipedia])&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
*[http://troy.jdmz.net/rsync/index.html Using Rsync and SSH]&lt;br /&gt;
*[http://crazytoon.com/2007/05/24/rsync-using-rsync-to-backup-data-from-one-server-to-another-over-ssh-quick-rsync-tutorial/ Rsync: Using rsync to backup data from one server to another over SSH. Quick rsync tutorial.]&lt;br /&gt;
*[http://www.howtoforge.com/mirroring_with_rsync Mirror Your Web Site With rsync]&lt;br /&gt;
&lt;br /&gt;
*http://www.togaware.com/linux/survivor/Rsync_Server.html&lt;br /&gt;
*http://www.dasgehtdichnichtsan.de/zaurus/znetbackup_server.html#linux&lt;br /&gt;
*http://www.rootprompt.org/article.php3?article=8976&lt;br /&gt;
*http://blog.taragana.com/index.php/archive/3-ways-to-setup-rsync-server-on-windows/&lt;br /&gt;
*http://gentoo-wiki.com/HOWTO_Local_Rsync_Mirror&lt;br /&gt;
*http://everythinglinux.org/rsync/rsync_content.html&lt;br /&gt;
*http://www.linuxforums.org/forum/linux-tutorials-howtos-reference-material/7610-central-rsync-server-gentoo-howto.html&lt;br /&gt;
*http://www.freeos.com/articles/4042/&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
 rsync (Use the --dry-run option for testing)&lt;br /&gt;
 rsync -P rsync://rsync.server.com/path/to/file file	Only get diffs. Do multiple times for troublesome downloads&lt;br /&gt;
 rsync --bwlimit=1000 fromfile tofile	Locally copy with rate limit. It&amp;#039;s like nice for I/O&lt;br /&gt;
 rsync -az -e ssh --delete ~/public_html/ remote.com:&amp;#039;~/public_html&amp;#039;	Mirror web site (using compression and encryption)&lt;br /&gt;
 rsync -auz -e ssh remote:/dir/ . &amp;amp;&amp;amp; rsync -auz -e ssh . remote:/dir/	Synchronize current directory with remote one&lt;br /&gt;
&lt;br /&gt;
== SSH ==&lt;br /&gt;
&lt;br /&gt;
Standard format:&lt;br /&gt;
 rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/ &lt;br /&gt;
&lt;br /&gt;
With ssh keys:&lt;br /&gt;
 rsync -avz -e &amp;quot;ssh -i /home/thisuser/cron/thishost-rsync-key&amp;quot; remoteuser@remotehost:/remote/dir /this/dir/&lt;br /&gt;
&lt;br /&gt;
In reverse:&lt;br /&gt;
 rsync -avz -e &amp;quot;ssh -p 9999&amp;quot; linux/ trogdor@oeey.com:/www/linux-tested-stage/&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
*[http://troy.jdmz.net/rsync/index.html Using Rsync and SSH]&lt;br /&gt;
&lt;br /&gt;
== Compile ==&lt;br /&gt;
&lt;br /&gt;
The --no-motd option is included with the latest source.&lt;br /&gt;
&lt;br /&gt;
Source:&lt;br /&gt;
 http://samba.anu.edu.au/rsync/download.html&lt;br /&gt;
&lt;br /&gt;
Compile:&lt;br /&gt;
 cd ~/src&lt;br /&gt;
 # git clone git://git.samba.org/rsync.git&lt;br /&gt;
 wget http://samba.anu.edu.au/ftp/rsync/rsync-3.0.7.tar.gz&lt;br /&gt;
 tar -zvxf rsync-3.0.7.tar.gz&lt;br /&gt;
 cd rsync-3.0.7&lt;br /&gt;
 ./configure --prefix=/opt/rsync&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
== Copy root ==&lt;br /&gt;
&lt;br /&gt;
 # -x says not to cross fs boundaries&lt;br /&gt;
 rsync -axv --progress / /newpu/ken/kesx/&lt;br /&gt;
&lt;br /&gt;
== Rsync Hardlink Copy Backup ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SOURCE=[SOURCE_PATH]&lt;br /&gt;
MAX=10&lt;br /&gt;
rm -rf $MAX&lt;br /&gt;
for i in $( seq $MAX -1 2 ) ; do&lt;br /&gt;
  mv $(( i - 1 )) $i&lt;br /&gt;
done&lt;br /&gt;
cp -al &amp;#039;current&amp;#039; 1  # this is the key here&lt;br /&gt;
rsync -avrt --delete $SOURCE &amp;#039;current&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Readme ==&lt;br /&gt;
&lt;br /&gt;
Full System Backup with rsync - ArchWiki - https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync&lt;br /&gt;
: This rsync script allows creating a full backup copy across filesystems. It is setup so that the copy includes intact booting capabilities, optionally excluding selected files.&lt;br /&gt;
: The approach has benefits over omitting system files by just copying personal data; if the system becomes corrupted in the main partition, overcoming the problem means booting into the backup as opposed to identifying and reinstalling affected programs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
How to Backup Linux? 15 rsync Command Examples - http://www.thegeekstuff.com/2010/09/rsync-command-examples/&lt;br /&gt;
&lt;br /&gt;
== Exclude ==&lt;br /&gt;
&lt;br /&gt;
 --exclude &amp;#039;dir1&amp;#039;&lt;br /&gt;
&lt;br /&gt;
 rsync -avz --exclude &amp;#039;dir1&amp;#039; source/ destination/&lt;br /&gt;
 rsync -avz --exclude &amp;#039;dir1&amp;#039; --exclude &amp;#039;dir2&amp;#039; source/ destination/&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* 6 rsync Examples to Exclude Multiple Files and Directories using exclude-from - http://www.thegeekstuff.com/2011/01/rsync-exclude-files-and-folders/&lt;br /&gt;
&lt;br /&gt;
== including only certain extensions ==&lt;br /&gt;
&lt;br /&gt;
What you need is indeed a combination of --include and --exclude arguments. For example the following will replicate only mp3 files in a directory named source, or any of its subdirectories, to a directory named target: [http://ubuntuforums.org/showthread.php?t=763833]&lt;br /&gt;
&lt;br /&gt;
 rsync -a --include &amp;#039;*/&amp;#039; --include &amp;#039;*.mp3&amp;#039; --exclude &amp;#039;*&amp;#039; source/ target/&lt;br /&gt;
&lt;br /&gt;
This will (1) include any directory or subdirectory, whatever its contents, (2) include all files with an mp3 extension, and (3) exclude all other files. Any number of other file types can be included by adding their one include pattern for each before the --exclude, e.g. --include &amp;#039;*.bmp&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== rsync server ==&lt;br /&gt;
&lt;br /&gt;
Runs on TCP port 873 by default.&lt;br /&gt;
&lt;br /&gt;
/etc/rsyncd.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
motd file = /etc/rsyncd.motd&lt;br /&gt;
log file = /var/log/rsyncd.log&lt;br /&gt;
pid file = /var/run/rsyncd.pid&lt;br /&gt;
lock file = /var/run/rsync.lock&lt;br /&gt;
&lt;br /&gt;
# Default port: 873&lt;br /&gt;
#port = 873&lt;br /&gt;
&lt;br /&gt;
[files]&lt;br /&gt;
   path = /home/public_rsync&lt;br /&gt;
   comment = Rsync Files Server&lt;br /&gt;
   read only = yes&lt;br /&gt;
   list = yes&lt;br /&gt;
   timeout = 300&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run server:&lt;br /&gt;
 rsync --daemon&lt;br /&gt;
&lt;br /&gt;
List rsync shares:&lt;br /&gt;
 rsync rsync://localhost&lt;br /&gt;
&lt;br /&gt;
Sync:&lt;br /&gt;
 rsync -avrt rsync://localhost/files .&lt;br /&gt;
&lt;br /&gt;
Larger Sync Example:&lt;br /&gt;
 rsync --verbose  --progress --stats --compress --rsh=/usr/local/bin/ssh \&lt;br /&gt;
      --recursive --times --perms --links --delete \&lt;br /&gt;
      --exclude &amp;quot;*bak&amp;quot; --exclude &amp;quot;*~&amp;quot; \&lt;br /&gt;
      /www/* webserver:simple_path_name&lt;br /&gt;
&lt;br /&gt;
=== xinetd ===&lt;br /&gt;
&lt;br /&gt;
/etc/xinetd.d/rsync:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# default: off&lt;br /&gt;
# description: The rsync server is a good addition to an ftp server, as it \&lt;br /&gt;
#       allows crc checksumming etc.&lt;br /&gt;
service rsync&lt;br /&gt;
{&lt;br /&gt;
        #disable = yes&lt;br /&gt;
        disable = no&lt;br /&gt;
        flags           = IPv6&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = root&lt;br /&gt;
        server          = /usr/bin/rsync&lt;br /&gt;
        server_args     = --daemon&lt;br /&gt;
        log_on_failure  += USERID&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
service xinetd restart&lt;br /&gt;
&lt;br /&gt;
yum install rsync xinetd&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Everything Linux - A Tutorial on Using Rsync - http://everythinglinux.org/rsync/&lt;br /&gt;
* Set up an Rsync Daemon on your Linux server | Atlantic.Net Community - https://www.atlantic.net/community/howto/setup-rsync-daemon/&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>