mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
WP Staging: Exclude some folders
This commit is contained in:
@@ -9,6 +9,7 @@ from plogical.mysqlUtilities import mysqlUtilities
|
||||
from random import randint
|
||||
import os
|
||||
|
||||
|
||||
class StagingSetup(multi.Thread):
|
||||
|
||||
def __init__(self, function, extraArgs):
|
||||
@@ -23,7 +24,7 @@ class StagingSetup(multi.Thread):
|
||||
elif self.function == 'startSyncing':
|
||||
self.startSyncing()
|
||||
except BaseException, msg:
|
||||
logging.writeToFile( str(msg) + ' [StagingSetup.run]')
|
||||
logging.writeToFile(str(msg) + ' [StagingSetup.run]')
|
||||
|
||||
def startCloning(self):
|
||||
try:
|
||||
@@ -64,7 +65,8 @@ class StagingSetup(multi.Thread):
|
||||
|
||||
masterPath = '/home/%s/public_html' % (masterDomain)
|
||||
|
||||
command = 'rsync -avzh --exclude "%s" --exclude "wp-content/plugins/litespeed-cache" %s/ %s' % (domain, masterPath, path)
|
||||
command = 'rsync -avzh --exclude "%s" --exclude "wp-content/backups" --exclude "wp-content/updraft" --exclude "wp-content/cache" --exclude "wp-content/plugins/litespeed-cache" %s/ %s' % (
|
||||
domain, masterPath, path)
|
||||
ProcessUtilities.executioner(command, website.externalApp)
|
||||
|
||||
logging.statusWriter(tempStatusPath, 'Data copied..,50')
|
||||
@@ -226,4 +228,4 @@ class StagingSetup(multi.Thread):
|
||||
return 0
|
||||
except BaseException, msg:
|
||||
mesg = '%s. [404]' % (str(msg))
|
||||
logging.statusWriter(tempStatusPath, mesg)
|
||||
logging.statusWriter(tempStatusPath, mesg)
|
||||
|
||||
Reference in New Issue
Block a user