Exemple #1
0
    def Start(jobName):
        res = subproccall(["veeamconfig", "job", "start", "--name", jobName])
        sessionId = None

        lines = res.split('\n')
        for ln in lines:
            if ln.find("Session ID:") != -1:
                first = ln.find("{")
                last = ln.find("}")
                sessionId = ln[first:last + 1]

        return [res, sessionId]
Exemple #2
0
 def DetailInfo(id):
     return subproccall(["veeamconfig", "job", "info", "--id", id])
Exemple #3
0
 def List():
     return subproccall(["veeamconfig", "job", "list"])
Exemple #4
0
 def Delete(jobName):
     return subproccall(["veeamconfig", "job", "delete", "--name", jobName])
Exemple #5
0
 def NewFileBackup(jobName, repoName, includeDirs):
     return subproccall([
         "veeamconfig", "job", "create", "fileLevel", "--name", jobName,
         "--repoName", repoName, "--includeDirs", includeDirs
     ])
Exemple #6
0
 def NewVolumeBackup(jobName, repoName, devices):
     ''' devices - is a comma separated name of devices or mount points or ...'''
     return subproccall([
         "veeamconfig", "job", "create", "--name", jobName, "--repoName",
         repoName, "--objects", devices
     ])
Exemple #7
0
 def List():
     return subproccall(["veeamconfig", "backup", "list"])
Exemple #8
0
 def Mount(id, dir):
     return subproccall(
         ["veeamconfig", "backup", "mount", "--id", id, "--mountDir", dir])