<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: Backup Windows Files with Rsync via Cygwin	</title>
	<atom:link href="https://stage.iaps.ca/backup-windows-files-with-rsync-via-cygwin/feed/" rel="self" type="application/rss+xml" />
	<link>https://stage.iaps.ca/backup-windows-files-with-rsync-via-cygwin/</link>
	<description>website and software development services</description>
	<lastBuildDate>Mon, 26 Jul 2021 00:58:39 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Rolf Maier		</title>
		<link>https://stage.iaps.ca/backup-windows-files-with-rsync-via-cygwin/#comment-113</link>

		<dc:creator><![CDATA[Rolf Maier]]></dc:creator>
		<pubDate>Mon, 26 Jul 2021 00:58:39 +0000</pubDate>
		<guid isPermaLink="false">https://stage.iaps.ca/?p=2042#comment-113</guid>

					<description><![CDATA[Instead of Notepad** you can add dos2unix to cygwin if the original install did not get it. &#039;which dos2unix =&#039; will tell you).
Now do: cd ~/Downloads; ./setup-.....exe [~ is shorthand for the home directory in Unix/Linux.]
In the &#039;Select Packages&#039; window pick &#039;Not Installed&#039;, in the empty box named View type dos2unix.
Now do a direct install or do in two steps; first download (default location: ~/Downloads), then install.
     dos2unix does an in-place conversion. For more read the (automatically installed) manual
man dos2unix.]]></description>
			<content:encoded><![CDATA[<p>Instead of Notepad** you can add dos2unix to cygwin if the original install did not get it. &#8216;which dos2unix =&#8217; will tell you).<br />
Now do: cd ~/Downloads; ./setup-&#8230;..exe [~ is shorthand for the home directory in Unix/Linux.]<br />
In the &#8216;Select Packages&#8217; window pick &#8216;Not Installed&#8217;, in the empty box named View type dos2unix.<br />
Now do a direct install or do in two steps; first download (default location: ~/Downloads), then install.<br />
     dos2unix does an in-place conversion. For more read the (automatically installed) manual<br />
man dos2unix.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tim Eveleigh		</title>
		<link>https://stage.iaps.ca/backup-windows-files-with-rsync-via-cygwin/#comment-99</link>

		<dc:creator><![CDATA[Tim Eveleigh]]></dc:creator>
		<pubDate>Sun, 13 Dec 2020 12:57:08 +0000</pubDate>
		<guid isPermaLink="false">https://stage.iaps.ca/?p=2042#comment-99</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://stage.iaps.ca/backup-windows-files-with-rsync-via-cygwin/#comment-87&quot;&gt;boshy&lt;/a&gt;.

&quot;Im still trying to figure out how to make sure I dont keep creating the folder inside the folder by leaving off trailing slashe&quot;

I had this problem too! You can use dot syntax (something like &#039;path/to/./folder&#039; - some experimentation probably required to work out exactly what you want) to avoid creating unnecessary folders]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://stage.iaps.ca/backup-windows-files-with-rsync-via-cygwin/#comment-87">boshy</a>.</p>
<p>&#8220;Im still trying to figure out how to make sure I dont keep creating the folder inside the folder by leaving off trailing slashe&#8221;</p>
<p>I had this problem too! You can use dot syntax (something like &#8216;path/to/./folder&#8217; &#8211; some experimentation probably required to work out exactly what you want) to avoid creating unnecessary folders</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: DCE Speedy		</title>
		<link>https://stage.iaps.ca/backup-windows-files-with-rsync-via-cygwin/#comment-98</link>

		<dc:creator><![CDATA[DCE Speedy]]></dc:creator>
		<pubDate>Sun, 19 Jul 2020 19:29:38 +0000</pubDate>
		<guid isPermaLink="false">https://stage.iaps.ca/?p=2042#comment-98</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://stage.iaps.ca/backup-windows-files-with-rsync-via-cygwin/#comment-87&quot;&gt;boshy&lt;/a&gt;.

rsync creates the end folder name in the target folder *unless* you include the / at the end of both paths.

IMPORTANT WARNING: please use &quot;--whole-file&quot; instead of allowing the partial file to remain if the command is stopped or fails for some reason. I have found that binary partial copies don&#039;t always copy properly on restart. I don&#039;t know why and partial updates have worked in the past, but if this is a backup, don&#039;t take chances. I move 100s of TB on large Linux databases quite often with parallel runs of rsync. It is a great tool, but the possible corruption issue has bit me in the tail more than once.

The following creates the end paths which you don&#039;t want. (note -a includes -r and -t)

rsync -auvh --stats --progress --whole-file /src/path/folder1 /target/path/folder1

results /target/path/folder1/folder1

Adding the forward slashes, I know it is not well documented, copies the contents of /src/path/folder1 into /target/path/folder1

So the following does what you want. 

rsync -auvh --stats --progress --whole-file /src/path/folder1/ /target/path/folder1/

results /target/path/folder1]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://stage.iaps.ca/backup-windows-files-with-rsync-via-cygwin/#comment-87">boshy</a>.</p>
<p>rsync creates the end folder name in the target folder *unless* you include the / at the end of both paths.</p>
<p>IMPORTANT WARNING: please use &#8220;&#8211;whole-file&#8221; instead of allowing the partial file to remain if the command is stopped or fails for some reason. I have found that binary partial copies don&#8217;t always copy properly on restart. I don&#8217;t know why and partial updates have worked in the past, but if this is a backup, don&#8217;t take chances. I move 100s of TB on large Linux databases quite often with parallel runs of rsync. It is a great tool, but the possible corruption issue has bit me in the tail more than once.</p>
<p>The following creates the end paths which you don&#8217;t want. (note -a includes -r and -t)</p>
<p>rsync -auvh &#8211;stats &#8211;progress &#8211;whole-file /src/path/folder1 /target/path/folder1</p>
<p>results /target/path/folder1/folder1</p>
<p>Adding the forward slashes, I know it is not well documented, copies the contents of /src/path/folder1 into /target/path/folder1</p>
<p>So the following does what you want. </p>
<p>rsync -auvh &#8211;stats &#8211;progress &#8211;whole-file /src/path/folder1/ /target/path/folder1/</p>
<p>results /target/path/folder1</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: boshy		</title>
		<link>https://stage.iaps.ca/backup-windows-files-with-rsync-via-cygwin/#comment-87</link>

		<dc:creator><![CDATA[boshy]]></dc:creator>
		<pubDate>Sun, 10 May 2020 07:02:10 +0000</pubDate>
		<guid isPermaLink="false">https://stage.iaps.ca/?p=2042#comment-87</guid>

					<description><![CDATA[This has been a really very useful guide to getting this up and running on some old Win7 machines, just backing up to ext drives. Im still trying to figure out how to make sure I dont keep creating the folder inside the folder by leaving off trailing slashes, once yuove made the initial data backup, so hope my next tests will work out. 

Other things to note for other total noobs like me: 
- To install only the packages you want from Cygwin, do not select the top&#039;All&#039;/install. It WILL install everything. Cygwin is massive, around 18gb I think, in total. Go to the specific packages and select install from those. 
- Select a mirror that is close to your location, and preferably use ftp for speed.
- To access the C:/cygwin folder from your terminal, go up a level to C, as your initial terminal window is in your local user level. 
- Any spaces in names of folders or user names can be surrounded by apostrophes to escape the spaces. 
- Note that names of folders for &#039;Documents&#039;, &#039;Pictures&#039; etc do not contain &#039;My Pictures&#039;, for example, they are just called &#039;Documents&#039;, Pictures&#039; when accessed from C. 

Hope this helps someone else getting started with this.]]></description>
			<content:encoded><![CDATA[<p>This has been a really very useful guide to getting this up and running on some old Win7 machines, just backing up to ext drives. Im still trying to figure out how to make sure I dont keep creating the folder inside the folder by leaving off trailing slashes, once yuove made the initial data backup, so hope my next tests will work out. </p>
<p>Other things to note for other total noobs like me:<br />
&#8211; To install only the packages you want from Cygwin, do not select the top&#8217;All&#8217;/install. It WILL install everything. Cygwin is massive, around 18gb I think, in total. Go to the specific packages and select install from those.<br />
&#8211; Select a mirror that is close to your location, and preferably use ftp for speed.<br />
&#8211; To access the C:/cygwin folder from your terminal, go up a level to C, as your initial terminal window is in your local user level.<br />
&#8211; Any spaces in names of folders or user names can be surrounded by apostrophes to escape the spaces.<br />
&#8211; Note that names of folders for &#8216;Documents&#8217;, &#8216;Pictures&#8217; etc do not contain &#8216;My Pictures&#8217;, for example, they are just called &#8216;Documents&#8217;, Pictures&#8217; when accessed from C. </p>
<p>Hope this helps someone else getting started with this.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
