original_docstring: Backup one or more files.
docstring: Backup one or more files.
docstring_tokens: Backup one or more files .
code: def backup(self):
          """Backup one or more files."""
          LOGGER.info("starting file backup...")
  
          tar_cmd = ["tar", "-cz", "-f", self.args.output] + self.extra
  
          try:
              self.result = subprocess.check_output(
                  tar_cmd, stderr=subprocess.STDOUT)
              LOGGER.info(self.result.decode('utf-8'))
              LOGGER.info("file backup complete")
          except Exception as error:
              LOGGER.error("Failed to backup files")
              raise error
code_tokens: def backup ( self ) : LOGGER . info ( "starting file backup..." ) tar_cmd = [ "tar" , "-cz" , "-f" , self . args . output ] + self . extra try : self . result = subprocess . check_output ( tar_cmd , stderr = subprocess . STDOUT ) LOGGER . info ( self . result . decode ( 'utf-8' ) ) LOGGER . info ( "file backup complete" ) except Exception as error : LOGGER . error ( "Failed to backup files" ) raise error
short_docstring: Backup one or more files.
short_docstring_tokens: Backup one or more files .
comment: """Backup one or more files."""