(self)
Return the last backup ID
Return the last backup ID
Return the last backup ID
def getLastBackupID(self):
        """Return the last backup ID"""

        # Use the passphrase saved
        os.environ["BORG_PASSPHRASE"] = self.key

        # Standard extractions
        args = [ 'borg', 'list', '--short', '--last', '1']

        # Finally add the repository path
        args.append(self.repositoryPath)

        # Star the process and keep stdout / stderr
        status = self.runCommand(args, "Getting last backupID")

        # Save details for reporting
        if status.stdout.rstrip() != "":
            return status.stdout.rstrip()
        else:
            return False
def getLastBackupID ( self ) : # Use the passphrase saved os . environ [ "BORG_PASSPHRASE" ] = self . key # Standard extractions args = [ 'borg' , 'list' , '--short' , '--last' , '1' ] # Finally add the repository path args . append ( self . repositoryPath ) # Star the process and keep stdout / stderr status = self . runCommand ( args , "Getting last backupID" ) # Save details for reporting if status . stdout . rstrip ( ) != "" : return status . stdout . rstrip ( ) else : return False