rdiff-backup-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Rdiff-backup-commits] Changes to rdiff-backup/FAQ-body.html


From: Ben Escoto
Subject: [Rdiff-backup-commits] Changes to rdiff-backup/FAQ-body.html
Date: Fri, 12 Aug 2005 00:31:28 -0400

Index: rdiff-backup/FAQ-body.html
diff -u rdiff-backup/FAQ-body.html:1.15 rdiff-backup/FAQ-body.html:1.16
--- rdiff-backup/FAQ-body.html:1.15     Sat Mar 26 18:04:58 2005
+++ rdiff-backup/FAQ-body.html  Fri Aug 12 04:31:28 2005
@@ -1,3 +1,5 @@
+<!-- #bbpragma doctype="-//W3C//DTD XHTML 1.0 Strict//EN" root_element="body" 
--> 
+
 <h3>Table of contents</h3>
 
 <ol><li><a href="#__future__">When I try to run rdiff-backup it says
@@ -10,7 +12,7 @@
 
 <li><a href="#OSX">Does rdiff-backup run under Mac OS X?</a></li>
 
-<li><a href="#remove_dir">My backup set contains some files that I just 
realized I don't want/need backed up.  How do I remove them from the backup 
volume to save space?</li>
+<li><a href="#remove_dir">My backup set contains some files that I just 
realized I don't want/need backed up.  How do I remove them from the backup 
volume to save space?</a></li>
 
 <li><a href="#solaris">Does rdiff-backup work under Solaris?</a></li>
 
@@ -39,33 +41,30 @@
 
 <ol>
 
-<a name="__future__">
-<li><strong>When I try to run rdiff-backup it says "ImportError: No
+<li><strong><a name="__future__">When I try to run rdiff-backup it says 
"ImportError: No
 module named __future__" or "SyntaxError: invalid syntax".  What's
-happening?</strong>
+happening?</a></strong>
 
-<P>rdiff-backup versions 0.2.x require Python version 2.1 or later,
+<p>rdiff-backup versions 0.2.x require Python version 2.1 or later,
 and versions 0.3.x and later require Python version 2.2 or later.  If
 you don't know what version of python you are running, type in "python
 -V" from the shell.  I'm sorry if this is inconvenient, but
 rdiff-backup uses generators, iterators, nested scoping, and
 static/class methods extensively, and these were only added in version
-2.2.
+2.2.</p>
 
-<P>If you have two versions of python installed, and running "python"
+<p>If you have two versions of python installed, and running "python"
 defaults to an early version, you'll probably have to change the first
-line of the rdiff-backup script.  For instance, you could set it to:
+line of the rdiff-backup script.  For instance, you could set it to:</p>
 
 <pre>#!/usr/bin/env python2.2</pre>
 </li>
 
-<a name="verbosity">
-<li><strong>What do the different verbosity levels mean?</strong>
+<li><strong><a name="verbosity">What do the different verbosity levels 
mean?</a></strong>
 
-<P>There is no formal specification, but here is a rough description
-(settings are always cumulative, so 5 displays everything 4 does):
+<p>There is no formal specification, but here is a rough description
+(settings are always cumulative, so 5 displays everything 4 does):</p>
 
-<P>
 <table cellspacing="10">
 <tr><td>0</td><td>No information given</td></tr>
 <tr><td>1</td><td>Fatal Errors displayed</td></tr>
@@ -78,15 +77,14 @@
 <tr><td>8</td><td>All logging is dated</td></tr>
 <tr><td>9</td><td>Details on which objects are moving across the 
connection</td></tr>
 </table>
+</li>
 
-<a name="windows">
-<li><strong>Does rdiff-backup run under Windows?</strong>
+<li><strong><a name="windows">Does rdiff-backup run under Windows?</a></strong>
 
-<P>Yes, apparently it is possible.  First, follow Jason Piterak's
-instructions:
+<p>Yes, apparently it is possible.  First, follow Jason Piterak's
+instructions:</p>
 
-<pre>
-Subject: Cygwin rdiff-backup
+<pre>Subject: Cygwin rdiff-backup
 From: Jason  Piterak &lt;address@hidden&gt;
 Date: Mon, 4 Feb 2002 16:54:24 -0500 (13:54 PST)
 To: address@hidden
@@ -121,22 +119,22 @@
 
 </pre>
 
-XXX The above information is old, point to newer porting efforts?
+<p>XXX The above information is old, point to newer porting efforts?</p>
 
-Although some windows filesystems lack features like fifos, case
+<p>Although some Windows filesystems lack features like FIFOs, case
 sensitive filenames, or files with colons (":") in them, this should
-be autodetected and compensated for by rdiff-backup.
+be autodetected and compensated for by rdiff-backup.</p>
+</li>
+
+<li><strong><a name="OSX">Does rdiff-backup run under Mac OS X?</a></strong>
 
-<P>
-<a name="OSX">
-<li><strong>Does rdiff-backup run under Mac OS X?</strong>
-
-<p>
-Yes, but there may be some issues installing librsync.  See this
-message from Gerd Knops:
+<p>Yes, but there may be some issues installing librsync. The easiest
+option is probably to use Fink <a
+href="http://fink.sourceforge.net/";>http://fink.sourceforge.net/</a>,
+which can install rdiff-backup automatically for you. If you want to
+build rdiff-backup yourself, see this message from Gerd Knops:</p>
 
-<pre>
-From: Gerd Knops <address@hidden>
+<pre>From: Gerd Knops &lt;address@hidden&gt;
 Date: Thu, 3 Oct 2002 03:56:47 -0500 (01:56 PDT)
 
 [parts of original message deleted]
@@ -148,46 +146,43 @@
        automake --foreign --add-missing
        env CFLAGS=-no-cpp-precomp ./configure
        make
-       make install
-</pre>
+       make install</pre>
 
-Also, if you are backing up to a file system that is not case
+<p>Also, if you are backing up to a file system that is not case
 sensitive you may need to use "--chars-to-quote A-Z".  If you do use
 --chars-to-quote, remember to use it with the same arguments when
-restoring or listing incrementes.
+restoring or listing increments.</p>
 </li>
 
-<P>
-<a name="remove_dir">
-<li><strong>My backup set contains some files that I just realized I
+<li><strong><a name="remove_dir">My backup set contains some files that I just 
realized I
 don't want/need backed up.  How do I remove them from the backup
-volume to save space?</strong>
+volume to save space?</a></strong>
+
+<p>Let's take an example.  Suppose you ran:</p>
 
-<P>Let's take an example.  Suppose you ran
 <pre>rdiff-backup /usr /backup</pre>
-and now realize that you don't want /usr/local backed up on /backup.
-Next time you back up, you run
+
+<p>and now realize that you don't want /usr/local backed up on /backup.
+Next time you back up, you run:</p>
+
 <pre>rdiff-backup --exclude /usr/local /usr /backup</pre>
 so that /usr/local is no longer copied to /backup/usr/local.
 
-However, old information about /usr/local is still present in
+<p>However, old information about /usr/local is still present in
 /backup/rdiff-backup-data/increments/usr/local.  You can try to
 manually remove this old information, but it's safer to let it be
 removed by rdiff-backup when you run it with the --remove-older-than
-option.
+option.</p>
 </li>
 
-<P>
-<a name="solaris">
-<li><strong>Does rdiff-backup work under Solaris?</strong>
+<li><strong><a name="solaris">Does rdiff-backup work under 
Solaris?</a></strong>
 
-<P>There may be a problem with rdiff-backup and Solaris' libthread.
+<p>There may be a problem with rdiff-backup and Solaris' libthread.
 Adding "ulimit -n unlimited" may fix the problem though.  Here is a
-post by Kevin Spicer on the subject:
+post by Kevin Spicer on the subject:</p>
 
-<pre>
-Subject: RE: Crash report....still not^H^H^H working
-From: "Spicer, Kevin" <address@hidden>
+<pre>Subject: RE: Crash report....still not^H^H^H working
+From: "Spicer, Kevin" &lt;address@hidden&gt;
 Date: Sat, 11 May 2002 23:36:42 +0100
 To: address@hidden
 
@@ -214,12 +209,10 @@
 </pre>
 </li>
 
-<P>
-<a name="speed">
-<li><strong>How fast is rdiff-backup?  Can it be run on large
-data sets?</strong>
+<li><strong><a name="speed">How fast is rdiff-backup?  Can it be run on large
+data sets?</a></strong>
 
-<P>rdiff-backup can be limited by the CPU, disk IO, or available
+<p>rdiff-backup can be limited by the CPU, disk IO, or available
 bandwidth, and the length of a session can be affected by the amount
 of data, how much the data changed, and how many files are present.
 That said, in the typical case the number/size of changed files is
@@ -227,23 +220,20 @@
 is often either CPU or bandwidth bound, and takes time proportional to
 the total number of files.  Initial mirrorings will usually be
 bandwidth or disk bound, and will take much longer than subsequent
-updates.
+updates.</p>
 
-<P>To give one arbitrary data point, when I back up my personal HD
-locally (about 36GB, 530000 files, maybe 500 MB turnover, athlon 2000,
+<p>To give one arbitrary data point, when I back up my personal HD
+locally (about 36GB, 530000 files, maybe 500 MB turnover, Athlon 2000,
 7200 IDE disks, version 0.12.2) rdiff-backup takes about 15 minutes
-and is usually CPU bound.
+and is usually CPU bound.</p>
 </li>
 
-<p>
-<a name="statistics">
-<li><strong>What do the various fields mean in the
-session statistics and directory statistics files?</strong>
+<li><strong><a name="statistics">What do the various fields mean in the
+session statistics and directory statistics files?</a></strong>
 
-<P>Let's examine an example session statistics file:
+<p>Let's examine an example session statistics file:</p>
 
-<pre>
-StartTime 1028200920.44 (Thu Aug  1 04:22:00 2002)
+<pre>StartTime 1028200920.44 (Thu Aug  1 04:22:00 2002)
 EndTime 1028203082.77 (Thu Aug  1 04:58:02 2002)
 ElapsedTime 2162.33 (36 minutes 2.33 seconds)
 SourceFiles 494619
@@ -260,59 +250,56 @@
 IncrementFiles 1857
 IncrementFileSize 13799799 (13.2 MB)
 TotalDestinationSizeChange 28034365 (26.7 MB)
-Errors 0
-</pre>
+Errors 0</pre>
 
-<P>StartTime and EndTime are measured in seconds since the epoch.
+<p>StartTime and EndTime are measured in seconds since the epoch.
 ElapsedTime is just EndTime - StartTime, the length of the
-rdiff-backup session.
+rdiff-backup session.</p>
 
-<P>SourceFiles are the number of files found in the source directory,
+<p>SourceFiles are the number of files found in the source directory,
 and SourceFileSize is the total size of those files.  MirrorFiles are
 the number of files found in the mirror directory (not including the
 rdiff-backup-data directory) and MirrorFileSize is the total size of
 those files.  All sizes are in bytes.  If the source directory hasn't
 changed since the last backup, MirrorFiles == SourceFiles and
-SourceFileSize == MirrorFileSize.
+SourceFileSize == MirrorFileSize.</p>
 
-<P>NewFiles and NewFileSize are the total number and size of the files
+<p>NewFiles and NewFileSize are the total number and size of the files
 found in the source directory but not in the mirror directory.  They
-are new as of the last backup.
+are new as of the last backup.</p>
 
-<P>DeletedFiles and DeletedFileSize are the total number and size of
+<p>DeletedFiles and DeletedFileSize are the total number and size of
 the files found in the mirror directory but not the source directory.
-They have been deleted since the last backup.
+They have been deleted since the last backup.</p>
 
-<P>ChangedFiles are the number of files that exist both on the mirror
+<p>ChangedFiles are the number of files that exist both on the mirror
 and on the source directories and have changed since the previous
 backup.  ChangedSourceSize is their total size on the source
 directory, and ChangedMirrorSize is their total size on the mirror
-directory.
+directory.</p>
 
-<P>IncrementFiles is the number of increment files written to the
+<p>IncrementFiles is the number of increment files written to the
 rdiff-backup-data directory, and IncrementFileSize is their total
 size.  Generally one increment file will be written for every new,
-deleted, and changed file.
+deleted, and changed file.</p>
 
-<P>TotalDestinationSizeChange is the number of bytes the destination
+<p>TotalDestinationSizeChange is the number of bytes the destination
 directory as a whole (mirror portion and rdiff-backup-data directory)
 has grown during the given rdiff-backup session.  This is usually
 close to IncrementFileSize + NewFileSize - DeletedFileSize +
 ChangedSourceSize - ChangedMirrorSize, but it also includes the space
-taken up by the hardlink_data file to record hard links.
+taken up by the hardlink_data file to record hard links.</p>
 </li>
 
-<a name="bwlimit">
-<li><strong>Is there some way to limit rdiff-backup's
-bandwidth usage, as in rsync's --bwlimit option?</strong>
+<li><strong><a name="bwlimit">Is there some way to limit rdiff-backup's
+bandwidth usage, as in rsync's --bwlimit option?</a></strong>
 
-<P>There is no internal rdiff-backup option to do this.  However, the
+<p>There is no internal rdiff-backup option to do this.  However, the
 --sleep-ratio option can limit overall resource usage, including
 bandwidth.  Also, external utilities such as <a 
href="http://www.cons.org/cracauer/cstream.html";>cstream</a> can be
-used to monitor bandwidth explicitly.  address@hidden writes:
+used to monitor bandwidth explicitly.  address@hidden writes:</p>
 
-<pre>
-rdiff-backup --remote-schema
+<pre>rdiff-backup --remote-schema
   'cstream -v 1 -t 10000 | ssh %s '\''rdiff-backup --server'\'' | cstream -t 
20000'
   'address@hidden::/mnt/backup' localbakdir
 
@@ -324,11 +311,10 @@
 Also, note how I only -v 1 in one direction.  You probably don't want
 to output stats for both directions as it will confuse whatever script
 you have parsing the output.  I guess it wouldn't hurt for manual runs
-however.
-</pre>
+however.</pre>
 
-To only limit bandwidth in one directory, simply remove one of the
-cstream commands.  Two cstream caveats may be worth mentioning:
+<p>To only limit bandwidth in one directory, simply remove one of the
+cstream commands.  Two cstream caveats may be worth mentioning:</p>
 
 <ol> <li>Because cstream is limiting the uncompressed data heading
 into or out of ssh, if ssh compression is turned on, cstream may be
@@ -338,79 +324,71 @@
 rdiff-backup to exceed it for significant periods.</li>
 </ol>
 
-<p>
-Another option is to limit bandwidth at a lower (and perhaps more
+<p>Another option is to limit bandwidth at a lower (and perhaps more
 appropriate) level.  Adam Lazur mentions <a
 href="http://lartc.org/wondershaper/";>The Wonder Shaper</a>.</p>
 </li>
 
-<a name="leak">
-<li><strong>How much memory should rdiff-backup use?  Is there a
-memory leak?</strong>
+<li><strong><a name="leak">How much memory should rdiff-backup use?  Is there a
+memory leak?</a></strong>
 
 <p>The amount of memory rdiff-backup uses should not depend much on
 the size of directories being processed.  Keeping track of hard links
 may use up memory, so if you have, say, hundreds of thousands of files
-hard linked together, rdiff-backup may need tens of MB.
+hard linked together, rdiff-backup may need tens of MB.</p>
 
 <p>If rdiff-backup seems to be leaking memory, it is probably because
 it is using an early version of librsync.  <strong>librsync 0.9.5
 leaks lots of memory.</strong> Version 0.9.5.1 should not leak and is
-available from the rdiff-backup homepage.
+available from the rdiff-backup homepage.</p>
 </li>
 
-<a name="dir_not_empty">
-<li><strong>I use NFS and keep getting some error that includes "OSError: 
[Errno 39] Directory not empty"</strong>
+<li><strong><a name="dir_not_empty">I use NFS and keep getting some error that 
includes "OSError: [Errno 39] Directory not empty"</a></strong>
 
-<P>Several users have reported seeing errors that contain lines like
-this:
+<p>Several users have reported seeing errors that contain lines like
+this:</p>
 
-<pre>
-File "/usr/lib/python2.2/site-packages/rdiff_backup/rpath.py",
+<pre>File "/usr/lib/python2.2/site-packages/rdiff_backup/rpath.py",
     line 661, in rmdir
 OSError: [Errno 39] Directory not empty:
     '/nfs/backup/redfish/win/Program Files/Common Files/GMT/Banners/11132'
 Exception exceptions.TypeError: "'NoneType' object is not callable"
-     in &lt;bound method GzipFile.__del__ of
-</pre>
+     in &lt;bound method GzipFile.__del__ of</pre>
 
-<p> All of these users were backing up onto NFS (Network File System).
+<p>All of these users were backing up onto NFS (Network File System).
 I think this is probably a bug in NFS, although tell me if you know
 how to make rdiff-backup more NFS-friendly.  To avoid this problem,
 run rdiff-backup locally on both ends instead of over NFS.  This
-should be faster anyway.
+should be faster anyway.</p>
 </li>
 
-<a name="regress_failure">
-<li><strong>For some reason rdiff-backup failed
+<li><strong><a name="regress_failure">For some reason rdiff-backup failed
 while backing up.  Now every time it runs it says "regressing
-destination" and then fails again.  What should I do?</strong>
+destination" and then fails again.  What should I do?</a></strong>
 
-<P>Firstly, this shouldn't happen.  If it does, it indicates a
+<p>Firstly, this shouldn't happen.  If it does, it indicates a
 corrupted destination directory, a bug in rdiff-backup, or some other
 serious recurring problem.</p>
 
 <p>However, here is a workaround that you might want to use, even
 though it probably won't solve the underlying problem:  In the
 destination's rdiff-backup-data directory, there should be two
-"current_mirror" files, for instance
+"current_mirror" files, for instance:</p>
+
 <pre>current_mirror.2003-09-07T16:43:00-07:00.data
 current_mirror.2003-09-08T04:22:01-07:00.data</pre>
 
-Delete the one with the earlier date.  Also move the mirror_metadata
+<p>Delete the one with the earlier date.  Also move the mirror_metadata
 file with the later date out of the way, because it probably didn't
-get written correctly because that session was aborted:
+get written correctly because that session was aborted:</p>
 
 <pre>mv mirror_metadata.2003-09-08T04:22:01-07:00.snapshot.gz \
    aborted-metadata.2003-09-08T04:22:01-07:00.snapshot.gz</pre>
 
-The next time rdiff-backup runs it won't try regressing the
+<p>The next time rdiff-backup runs it won't try regressing the
 destination.  Metadata will be read from the file system, which may
 result in some extra files being backed up, but there shouldn't be any
 data loss.</p>
-
-
 </li>
 
 </ol>
-




reply via email to

[Prev in Thread] Current Thread [Next in Thread]