{"id":19,"date":"2005-11-02T02:32:19","date_gmt":"2005-11-02T00:32:19","guid":{"rendered":"http:\/\/katastrophos.net\/andre\/blog\/?p=19"},"modified":"2006-04-04T23:18:16","modified_gmt":"2006-04-04T21:18:16","slug":"rdiff-backup-on-windows","status":"publish","type":"post","link":"https:\/\/katastrophos.net\/andre\/blog\/2005\/11\/02\/rdiff-backup-on-windows\/","title":{"rendered":"rdiff-backup on Windows"},"content":{"rendered":"<p><a href=\"http:\/\/www.nongnu.org\/rdiff-backup\/\">rdiff-backup<\/a> is a very handy utility to effectively create and manage incremental file backups. Most modern GNU\/Linux distributions offer rdiff-backup as installable package. Sadly there is no easy to install version available for Windows.<br \/>\nSo, here is a short guide:<br \/>\n<!--more--> If you have <a href=\"http:\/\/www.cygwin.com\">Cygwin<\/a> installed, you&#8217;re almost ready to go. Make sure to install the following packages with the Cygwin installer:<\/p>\n<pre>Devel\/\r\nautoconf\r\nautomake\r\nbinutils\r\ngcc\r\nmake\r\npatchutils\r\nInterpreters\/\r\npython\r\nWeb\/\r\nwget<\/pre>\n<p>Next step is to open the Cygwin console. We have to download <a href=\"http:\/\/librsync.sourceforge.net\/\">librsync<\/a> because it is a prerequisite for rdiff-backup. To do so, type the following:<\/p>\n<pre># wget http:\/\/mesh.dl.sourceforge.net\/sourceforge\/librsync\/librsync-0.9.7.tar.gz<\/pre>\n<p>Now we need to unpack the archive and build it:<\/p>\n<pre># tar xzf librsync-0.9.7.tar.gz\r\n# cd librsync-0.9.7\r\n# .\/configure --prefix=\/usr --bindir=\/bin --libdir=\/lib\r\n# make all\r\n# make install<\/pre>\n<p>Next step is to download <a href=\"http:\/\/www.nongnu.org\/rdiff-backup\/\">rdiff-backup<\/a>:<\/p>\n<pre># cd ..\r\n# wget http:\/\/savannah.nongnu.org\/download\/rdiff-backup\/rdiff-backup-1.1.5.tar.gz<\/pre>\n<p>Now unpack the archive:<\/p>\n<pre># tar xzf rdiff-backup-1.1.5.tar.gz\r\n# cd rdiff-backup-1.1.5<\/pre>\n<p>I had a problem with version 1.1.0-1.1.5 where rdiff-backup would stop with a stack trace and an uncaught exception while finishing the backup. In this process it\u00e2\u20ac\u2122s calling fsync, which is unsupported on Windows. Thus, we need to apply a quick and dirty patch to the file rpath.py before continuing.<\/p>\n<pre># cd rdiff_backup\r\n# wget http:\/\/www.katastrophos.net\/downloads\/rpath-fsync.patch\r\n# patch < rpath-fsync.patch\r\n# cd ..<\/pre>\n<p>Type this to install rdiff-backup:<\/p>\n<pre># python setup.py install<\/pre>\n<p>If the installation was successful, you can safely delete the directories and files downloaded:<\/p>\n<pre># cd ..\r\n# rm rdiff-backup-1.1.5.tar.gz librsync-0.9.7.tar.gz\r\n# rm -Rf rdiff-backup-1.1.5 librsync-0.9.7<\/pre>\n<p>More information on how to use rdiff-backup can be found <a href=\"http:\/\/www.nongnu.org\/rdiff-backup\/docs.html\">here<\/a>.<\/p>\n<p><strong>Update 1 (January 24th, 2006)<\/strong>: Updated to version 1.1.5.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>rdiff-backup is a handy utility to effectively creating and managing incremental file backups. Most modern GNU\/Linux distributions offer rdiff-backup as installable package. Sadly there is no easy to install version available for Windows.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[9],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","tag-windows"],"_links":{"self":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts\/19"}],"collection":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/katastrophos.net\/andre\/blog\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}