Skip to content
Permalink
Browse files
bug fix : #384
  • Loading branch information
usmannasir committed Jul 5, 2020
1 parent 57e8a6e commit 06dade9910a09263979a03470322c9ba3820e2f6
Showing 1 changed file with 2 additions and 2 deletions.
@@ -478,15 +478,15 @@ def BackupRoot(tempStoragePath, backupName, backupPath, metaPath=None):

## shutil.make_archive. Creating final package.

logging.CyberCPLogFileWriter.statusWriter(status, "Preparing final compressed package..\n")

make_archive(os.path.join(backupPath, backupName), 'gztar', tempStoragePath)
rmtree(tempStoragePath)

###

backupObs = Backups.objects.filter(fileName=backupName)

## adding backup data to database.

filePath = '%s/%s.tar.gz' % (backupPath, backupName)
totalSize = '%sMB' % (str(int(os.path.getsize(filePath) / 1048576)))

0 comments on commit 06dade9

Please sign in to comment.