prevent email backup for now

This commit is contained in:
usman@cyberpersons.com
2023-03-10 14:37:03 +05:00
parent ba8b63df6f
commit 2141ebe1c7

View File

@@ -140,7 +140,6 @@ pass = {ObsecurePassword}
command = f'chown cyberpanel:cyberpanel {self.FinalPathRuctic}/config.json'
ProcessUtilities.executioner(command)
def MergeSnapshots(self):
snapshots = ''
for snapshot in self.snapshots:
@@ -153,7 +152,6 @@ pass = {ObsecurePassword}
command = f'rustic -r {self.repo} forget {snapshots} --password ""'
result = ProcessUtilities.outputExecutioner(command, self.website.externalApp, True)
def InitiateBackup(self):
from websiteFunctions.models import Websites, Backupsv2
@@ -596,9 +594,9 @@ pass = {ObsecurePassword}
exclude = f' --exclude-if-present rusticbackup --exclude-if-present logs '
command = f'rustic -r {self.repo} backup {source} --password "" {exclude} --json 2>/dev/null'
command = f'rustic -P /home/{self.website.domain}/.config/rclone/rclone.conf -r {self.repo} backup {source} --password "" {exclude} --json 2>/dev/null'
result = json.loads(ProcessUtilities.outputExecutioner(command, self.website.externalApp, True).rstrip('\n'))
result = json.loads(ProcessUtilities.outputExecutioner(command, None, True).rstrip('\n'))
try:
SnapShotID = result['id'] ## snapshot id that we need to store in db