mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-12 16:26:12 +01:00
bug fix in backup encoding
This commit is contained in:
@@ -374,7 +374,9 @@ class backupUtilities:
|
|||||||
|
|
||||||
# copy_tree('/home/%s/public_html' % domainName, '%s/%s' % (tempStoragePath, 'public_html'))
|
# copy_tree('/home/%s/public_html' % domainName, '%s/%s' % (tempStoragePath, 'public_html'))
|
||||||
command = 'cp -R /home/%s/public_html %s/public_html' % (domainName, tempStoragePath)
|
command = 'cp -R /home/%s/public_html %s/public_html' % (domainName, tempStoragePath)
|
||||||
ProcessUtilities.executioner(command)
|
|
||||||
|
if ProcessUtilities.normalExecutioner(command) == 0:
|
||||||
|
raise BaseException('Failed to run %s.' % (command))
|
||||||
|
|
||||||
# make_archive(os.path.join(tempStoragePath,"public_html"), 'gztar', os.path.join("/home",domainName,"public_html"))
|
# make_archive(os.path.join(tempStoragePath,"public_html"), 'gztar', os.path.join("/home",domainName,"public_html"))
|
||||||
|
|
||||||
@@ -1939,7 +1941,7 @@ def submitBackupCreation(tempStoragePath, backupName, backupPath, backupDomain):
|
|||||||
+ backupName + " --backupPath " + backupPath + ' --backupDomain ' + backupDomain + ' --metaPath %s' % (
|
+ backupName + " --backupPath " + backupPath + ' --backupDomain ' + backupDomain + ' --metaPath %s' % (
|
||||||
result[2])
|
result[2])
|
||||||
|
|
||||||
output = ProcessUtilities.outputExecutioner(execPath)
|
output = ProcessUtilities.outputExecutioner(execPath, website.externalApp)
|
||||||
|
|
||||||
if output.find('[5009]') > -1:
|
if output.find('[5009]') > -1:
|
||||||
logging.CyberCPLogFileWriter.writeToFile(output)
|
logging.CyberCPLogFileWriter.writeToFile(output)
|
||||||
|
|||||||
Reference in New Issue
Block a user