<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Go away or I will replace you with a very small shell script, actually,,, hang around dude....</title>
	<link>http://ask.metafilter.com/86110/Go-away-or-I-will-replace-you-with-a-very-small-shell-script-actually-hang-around-dude/</link>
	<description>Comments on Ask MetaFilter post Go away or I will replace you with a very small shell script, actually,,, hang around dude....</description>
	<pubDate>Thu, 13 Mar 2008 19:54:32 -0800</pubDate>
	<lastBuildDate>Thu, 13 Mar 2008 19:54:32 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Go away or I will replace you with a very small shell script, actually,,, hang around dude....</title>
		<link>http://ask.metafilter.com/86110/Go-away-or-I-will-replace-you-with-a-very-small-shell-script-actually-hang-around-dude</link>	
		<description>Anyone know of a backup script or utility that won&apos;t hurt the OLD copy? &lt;br /&gt;&lt;br /&gt; Is there any software/script for this situation:&lt;br&gt;
&lt;br&gt;
I have two hard drives / directories, one a master backup (A) which is out-of-date, the other is the drive I work with day to day (B).&lt;br&gt;
&lt;br&gt;
I&apos;d like to copy/move all the files from B to replace the out-of-date versions on A. However. if I just copy the root directory I lose anything that was on A but not B.&lt;br&gt;
&lt;br&gt;
Sort of like a CVS update, but CVS has not been setup previously.  like this:&lt;br&gt;
for all files on B&lt;br&gt;
if (file exists on A)&lt;br&gt;
     replace A&apos;s copy with B&apos;s&lt;br&gt;
else&lt;br&gt;
   add it&lt;br&gt;
&lt;br&gt;
and  don&apos;t touch any file/dir that&apos;s on A but not B.  &lt;br&gt;
&lt;br&gt;
I&apos;ve run into this need twice this week and while probably trivial to script out it seems like a need others would have had too, so maybe re-inventing the wheel to write it? (plus I suck at  batch scripting)&lt;br&gt;
&lt;br&gt;
I can&apos;t find the key words to google for it, but this has to exist for unix and windows, right? A handy free backup app that has this feature through configuration would be of great interest too.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.86110</guid>
		<pubDate>Thu, 13 Mar 2008 19:38:30 -0800</pubDate>
		<dc:creator>oblio_one</dc:creator>
		
			<category>computers</category>
		
			<category>script</category>
		
			<category>backup</category>
		
	</item> <item>
		<title>By: nicwolff</title>
		<link>http://ask.metafilter.com/86110/Go-away-or-I-will-replace-you-with-a-very-small-shell-script-actually-hang-around-dude#1271817</link>	
		<description>rsync --existing --update a/ b</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86110-1271817</guid>
		<pubDate>Thu, 13 Mar 2008 19:54:32 -0800</pubDate>
		<dc:creator>nicwolff</dc:creator>
	</item><item>
		<title>By: oblio_one</title>
		<link>http://ask.metafilter.com/86110/Go-away-or-I-will-replace-you-with-a-very-small-shell-script-actually-hang-around-dude#1271837</link>	
		<description>thanks! knew it had to be simpler then I was making it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86110-1271837</guid>
		<pubDate>Thu, 13 Mar 2008 20:12:01 -0800</pubDate>
		<dc:creator>oblio_one</dc:creator>
	</item><item>
		<title>By: nicwolff</title>
		<link>http://ask.metafilter.com/86110/Go-away-or-I-will-replace-you-with-a-very-small-shell-script-actually-hang-around-dude#1271844</link>	
		<description>Whoops, add --recursive or it won&apos;t do much :/</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86110-1271844</guid>
		<pubDate>Thu, 13 Mar 2008 20:16:44 -0800</pubDate>
		<dc:creator>nicwolff</dc:creator>
	</item><item>
		<title>By: nicwolff</title>
		<link>http://ask.metafilter.com/86110/Go-away-or-I-will-replace-you-with-a-very-small-shell-script-actually-hang-around-dude#1271853</link>	
		<description>Wait, now I&apos;m not sure what you were asking. You want to make the backup A have all files that are on B without deleting any that are on A but not on B - then I have A and B backwards, and you don&apos;t want --existing, just&lt;br&gt;
&lt;br&gt;
rsync --update --recursive B/ A&lt;br&gt;
&lt;br&gt;
Hope you didn&apos;t do this without testing! Sorry.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86110-1271853</guid>
		<pubDate>Thu, 13 Mar 2008 20:22:01 -0800</pubDate>
		<dc:creator>nicwolff</dc:creator>
	</item><item>
		<title>By: nicwolff</title>
		<link>http://ask.metafilter.com/86110/Go-away-or-I-will-replace-you-with-a-very-small-shell-script-actually-hang-around-dude#1271857</link>	
		<description>(And, with --update I&apos;m assuming that you don&apos;t want to write over files on the backup if they&apos;re newer than a file with the same name at the same location on the source, but maybe you do, for instance if you reverted a library.)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86110-1271857</guid>
		<pubDate>Thu, 13 Mar 2008 20:24:18 -0800</pubDate>
		<dc:creator>nicwolff</dc:creator>
	</item><item>
		<title>By: oblio_one</title>
		<link>http://ask.metafilter.com/86110/Go-away-or-I-will-replace-you-with-a-very-small-shell-script-actually-hang-around-dude#1271904</link>	
		<description>heh,  I thanked  and favorited you after scanning the man page, no worries about testing. You&apos;ve given me that keyword to search and that was what I was most thankful for.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Anyone with a word on windows solution? or and useful app in general? might as well make the most of my question.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86110-1271904</guid>
		<pubDate>Thu, 13 Mar 2008 20:50:10 -0800</pubDate>
		<dc:creator>oblio_one</dc:creator>
	</item><item>
		<title>By: chrisamiller</title>
		<link>http://ask.metafilter.com/86110/Go-away-or-I-will-replace-you-with-a-very-small-shell-script-actually-hang-around-dude#1271949</link>	
		<description>There are many rsync wrappers for windows, or &lt;a href=&quot;http://www.microsoft.com/windowsxp/using/digitalphotography/prophoto/synctoy.mspx&quot;&gt;SyncToy&lt;/a&gt; does pretty much the same thing.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86110-1271949</guid>
		<pubDate>Thu, 13 Mar 2008 21:43:25 -0800</pubDate>
		<dc:creator>chrisamiller</dc:creator>
	</item><item>
		<title>By: cmiller</title>
		<link>http://ask.metafilter.com/86110/Go-away-or-I-will-replace-you-with-a-very-small-shell-script-actually-hang-around-dude#1272062</link>	
		<description>Ooo!  Ooo!  I just registered a project to do this a month ago.  It uses rsync in the back end.  If you use a filesystem that supports file &quot;links&quot;, then you get full numbered snapshots but you only use additional disc space for files that change; my filesystem is EXT2 because I use Linux, but I hear NTFS supports &quot;hard links&quot; too.  The upshot is that I have 60 directories on my extra disc, each one representing a different day, each looking like a full copy of my stuff -- all fitting on a disc that is only twice as big as the source, not 60 times as big.  If I want to see what things were like two weeks ago, I go look in 14/ .&lt;br&gt;
&lt;br&gt;
You can &lt;a href=&quot;http://web.chad.org/projects/rsnap/&quot;&gt;get v0.5 at&lt;br&gt;
  http://web.chad.org/projects/rsnap/&lt;/a&gt; or track its progress at https://code.launchpad.net/rsnap &lt;br&gt;
&lt;br&gt;
Alternatively, you can use the same mechanism I use.  Shift the numbers up one, and then create a new zero dir:&lt;br&gt;
  deltree 5&lt;br&gt;
  rename 4 5&lt;br&gt;
  rename 3 4&lt;br&gt;
  rename 2 3&lt;br&gt;
  rename 1 2&lt;br&gt;
  rename 0 1&lt;br&gt;
  rsync --archive --numeric-ids --link-dest=../1 c:/ 1&lt;br&gt;
...or something like that -- my DOS skills are very rusty.&lt;br&gt;
&lt;br&gt;
I&apos;d love to know that rsnap works on Windows.  Ping me if you&apos;re interested.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86110-1272062</guid>
		<pubDate>Fri, 14 Mar 2008 02:29:22 -0800</pubDate>
		<dc:creator>cmiller</dc:creator>
	</item><item>
		<title>By: sgmax</title>
		<link>http://ask.metafilter.com/86110/Go-away-or-I-will-replace-you-with-a-very-small-shell-script-actually-hang-around-dude#1272875</link>	
		<description>Try Allway Sync at &lt;a href=&quot;http://allwaysync.com&quot;&gt;http://allwaysync.com&lt;/a&gt;    I love this program, as you can configure multiple directories with different sync options.  It is free for very limited backups and cheap for a licensed version. They are very nice people and very helpful with upgrades etc.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86110-1272875</guid>
		<pubDate>Fri, 14 Mar 2008 18:40:41 -0800</pubDate>
		<dc:creator>sgmax</dc:creator>
	</item>
	</channel>
</rss>
