mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-15 22:51:12 +02:00
bug fix: backups v2
This commit is contained in:
@@ -901,7 +901,7 @@ def selectwebsiteRetorev2(request):
|
||||
else:
|
||||
return ACLManager.loadError()
|
||||
|
||||
obj = Websites.objects.get(domain = str(Selectedwebsite), admin = admin)
|
||||
obj = Websites.objects.get(domain = str(Selectedwebsite))
|
||||
#/home/cyberpanel.net/.config/rclone/rclone.conf
|
||||
path = '/home/%s/.config/rclone/rclone.conf' %(obj.domain)
|
||||
|
||||
|
||||
@@ -119,9 +119,9 @@ class CPBackupsV2(multi.Thread):
|
||||
## Set up the repo name to be used
|
||||
|
||||
if self.data['BackendName'] != 'local':
|
||||
self.repo = f"rclone:{self.data['BackendName']}:{self.data['domain']}"
|
||||
self.repo = f"rclone:'{self.data['BackendName']}':{self.data['domain']}"
|
||||
else:
|
||||
self.repo = f"rclone:{self.data['BackendName']}:/home/{self.data['domain']}/incrementalbackups"
|
||||
self.repo = f"rclone:'{self.data['BackendName']}':/home/{self.data['domain']}/incrementalbackups"
|
||||
|
||||
### This will contain list of all snapshots id generated and it will be merged
|
||||
|
||||
|
||||
Reference in New Issue
Block a user