fix some backup issues

This commit is contained in:
usman@cyberpersons.com
2023-04-20 13:41:27 +05:00
parent 199c23b9af
commit 8b3bdfd805
2 changed files with 8 additions and 4 deletions

View File

@@ -49,6 +49,10 @@ class BackupManager:
def backupSite(self, request=None, userID=None, data=None):
currentACL = ACLManager.loadedACL(userID)
websitesName = ACLManager.findAllSites(currentACL, userID)
command = 'chmod 755 /home/backup'
ProcessUtilities.executioner(command)
proc = httpProc(request, 'backup/backup.html', {'websiteList': websitesName}, 'createBackup')
return proc.render()

View File

@@ -316,8 +316,8 @@ team_drive =
command = f"mkdir -p {self.data['BasePath']}"
ProcessUtilities.executioner(command)
command = f"chmod 711 {self.data['BasePath']}"
ProcessUtilities.executioner(command)
#command = f"chmod 711 {self.data['BasePath']}"
#ProcessUtilities.executioner(command)
self.StartingTimeStamp = CPBackupsV2.FetchCurrentTimeStamp()
@@ -904,8 +904,8 @@ team_drive =
command = f"mkdir -p {self.data['BasePath']}"
ProcessUtilities.executioner(command)
command = f"chmod 711 {self.data['BasePath']}"
ProcessUtilities.executioner(command)
#command = f"chmod 711 {self.data['BasePath']}"
#ProcessUtilities.executioner(command)
self.StartingTimeStamp = CPBackupsV2.FetchCurrentTimeStamp()