Allow the entire backup run to be halted by an action (Closes: #455836)
[matthijs/upstream/backupninja.git] / README
diff --git a/README b/README
index 13c89bf05e6bf62b7afefdc58ef6f1ede49f0145..03d96fe931ea217149793c53f7ab97b2c8ab4002 100644 (file)
--- a/README
+++ b/README
@@ -58,13 +58,14 @@ To preform the actual backup, backupninja processes each configuration
 file in /etc/backup.d according to the file's suffix:
  
   .sh      --  run this file as a shell script.
-  .rdiff   --  this is a configuration for rdiff-backup
-  .maildir --  this is a configuration to backup maildirs
-  .dup     --  this is a configuration for duplicity
-  .mysql   --  mysql backup configuration
-  .ldap    --  ldap backup configuration
-  .sys     --  general system reports
-  .svn     --  subversion repository backups
+  .rdiff   --  filesystem backup (using rdiff-backup)
+  .dup     --  filesystem backup (using duplicity)
+  .mysql   --  backup mysql databases
+  .ldap    --  backup ldap databases
+  .pgsql   --  backup PostgreSQL databases
+  .sys     --  general hardware, partition, and system reports.
+  .svn     --  backup subversion repositories
+  .maildir --  incrementally backup maildirs (very specialized)
 
 Support for additional configuration types can be added by dropping
 bash scripts with the name of the suffix into /usr/share/backupninja. 
@@ -79,8 +80,9 @@ For example:
        90-runthislast.rdiff
 
 Typically, you will put a '.rdiff' config file last, so that any
-database dumps you make are included in the filesystem backup. 
-Configurations files which begin with 0 (zero) are skipped.
+database dumps you make are included in the filesystem backup.
+Configurations files with names beginning with 0 (zero) or ending with
+.disabled (preferred method) are skipped.
 
 Unless otherwise specified, the config file format is "ini style."
 
@@ -121,6 +123,9 @@ If two configurations files are scheduled close to one another in
 time, it is possible to have multiple copies of backupninja running if
 the first instance is not finished before the next one starts.
 
+Make sure that you put the "when" option before any sections in your
+configuration file.
+
 These values for 'when' are equivalent:
 
   when = tuesday at 05:30
@@ -136,7 +141,7 @@ These values for 'when' are invalid:
 REAL WORLD USAGE
 ================
 
-Backupninja can be used to impliment whatever backup strategy you
+Backupninja can be used to implement whatever backup strategy you
 choose. It is intended, however, to be used like so:
 
 (1) First, databases are safely copied or exported to /var/backups.
@@ -174,6 +179,8 @@ user 'backup' on desthost without specifying a password.
 Note: when prompted for a password by ssh-keygen, just leave it
 blank by hitting return.
 
+The included helper program "ninjahelper" will walk you through creating
+an rdiff-backup configuration, and will set up the ssh keys for you.
 
 INSTALLATION
 ============
@@ -199,6 +206,7 @@ Installation:
   # tar xvzf backupninja.tar.gz
   # cd backupninja
   # mv backupninja /usr/sbin/backupninja
+  # mv ninjahelper /usr/sbin/ninjahelper
   # mv etc/logrotate.d/backupninja /etc/logrotate.d/backupninja
   # mv etc/cron.d/backupninja /etc/cron.d/backupninja
   # mkdir /etc/backup.d/
@@ -210,15 +218,46 @@ VSERVERS
 ========
 
 If you are using Linux-Vservers (http://linux-vserver.org/) there are some
-special capabilities that different handlers have to make vserver backups easier.
+special capabilities that different handlers have to make vserver 
+backups easier.
+
 Set the variable "vservers" to be "yes" in /etc/backupninja.conf and see the
 example configuration files for each handler to configure the vserver specific
 variables.
 
-Additional vserver variables that can be configured in /etc/backupninja.conf. but
-probably don't need to be changed:
+Additional vserver variables that can be configured in /etc/backupninja.conf
+but they probably don't need to be changed:
 
 VSERVERINFO (default: /usr/sbin/vserver-info)
 VSERVER (default: /usr/sbin/vserver)
-VROOTDIR (default: `$VSERVERINFO info SYSINFO |grep vserver-Rootdir | awk '{print $2}'; fi`)
+VROOTDIR (default: `$VSERVERINFO info SYSINFO |grep vserver-Rootdir | awk '{print $2}'`)
+
+NINJAHELPER
+===========
+
+Ninjahelper is an additional script which will walk you through the process of
+configuring backupninja. Ninjahelper has a menu driven curses based interface
+(using dialog). 
+
+To add an additional 'wizard' to ninjahelper, follow these steps:
+
+(1) to add a helper for the handler "blue", create the file
+    blue.helper in the directory where the handlers live.
+    (ie /usr/share/backupninja).
+
+(2) next, you need to add your helper to the global HELPERS variable
+    and define the main function for your helper (the function name
+    is always <helper>_wizard). for example, blue.helper:
+       HELPERS="$HELPERS blue:description_of_this_helper"
+       blue_wizard() {
+         ... do work here ...
+       }
+
+(3) look at the existing helpers to see how they are written. Try to re-use
+    functions, such as the dialog functions that are defined in easydialog.sh,
+    or the vserver functions defined in lib/vserver.
 
+(4) test, re-test, and test again. Try to break the helper by going backwards,
+    try to think like someone who has no idea how to configure your handler
+    would think, try to make your helper as simple as possible. Walk like a cat,
+    become your shadow, don't let your senses betray you.