docs: def backup(outputdir):
      """
      Backup an anchore installation to a tarfile.
      """
  
      ecode = 0
      try:
          anchore_print('Backing up anchore system to directory '+str(outputdir)+' ...')
          backupfile = config.backup(outputdir)
          anchore_print({"anchore_backup_tarball":str(backupfile)}, do_formatting=True)
      except Exception as err:
          anchore_print_err('operation failed')
          ecode = 1
  
      sys.exit(ecode)