Add option to archive the backup using gz, bz2 or zip to hot-backup.py.
Add option to archive the backup using gz, bz2 or zip to
hot-backup.py.


* tools/backup/hot-backup.py.in
  Update copyright year, and add imports.

  (archive_map): New dictionary mapping archive types to file
   extentions.

  (usage): New. Print out a usage message.

  Redo command line processing using getopt and add --archive-type
  option to specify the archive type.

  (comparator): If archiving, add the archive extenstion to the regexp
   to find archives as well.

  Step 2, also find archives.
  Step 3, print the error message to stderr.
  Step 4, archive backup.
  Step 5, look for archives to remove as well.


Patch by: Chris Foote <cfoote@v21.me.uk>
(Tweaked by me.)
Review by: me


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@858948 13f79535-47bb-0310-9956-ffa450edef68

wbond/subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion