mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-15 20:12:06 +01:00
bug fix" minor improvement to create local backup
This commit is contained in:
@@ -72,6 +72,8 @@ class backupSchedule:
|
||||
time.sleep(5)
|
||||
schedulerPath = '/home/cyberpanel/%s-backup.txt' % (virtualHost)
|
||||
|
||||
killCounter = 0
|
||||
|
||||
while (1):
|
||||
diff = datetime.now() - startingTime
|
||||
|
||||
@@ -118,8 +120,11 @@ class backupSchedule:
|
||||
else:
|
||||
return 0, 'Backup process killed without reporting any error.'
|
||||
else:
|
||||
|
||||
return 0, 'Backup process killed without reporting any error.'
|
||||
if killCounter == 1:
|
||||
return 0, 'Backup process killed without reporting any error.'
|
||||
else:
|
||||
time.sleep(10)
|
||||
killCounter = 1
|
||||
|
||||
## file name read ends
|
||||
|
||||
|
||||
Reference in New Issue
Block a user