rustic installed1

This commit is contained in:
unknown
2023-02-20 15:25:37 +05:00
parent 1754e48556
commit 8f7bc85fe6

View File

@@ -328,7 +328,6 @@ class CPBackupsV2:
def Incrmentalback(self): def Incrmentalback(self):
try: try:
logging.CyberCPLogFileWriter.writeToFile('--------------habbi-----------test----------')
url = "https://api.github.com/repos/rustic-rs/rustic/releases/latest" url = "https://api.github.com/repos/rustic-rs/rustic/releases/latest"
response = requests.get(url) response = requests.get(url)
@@ -352,6 +351,8 @@ class CPBackupsV2:
command = 'sudo mv /home/rustic/rustic /usr/bin/' command = 'sudo mv /home/rustic/rustic /usr/bin/'
ProcessUtilities.executioner(command) ProcessUtilities.executioner(command)
command = 'rm -rf /home/rustic'
ProcessUtilities.executioner(command)
except BaseException as msg: except BaseException as msg:
print('Error: %s'%msg) print('Error: %s'%msg)