mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 07:16:15 +01:00
dobule folder issue https://www.facebook.com/photo?fbid=715180037056158&set=pcb.3296584913986467
This commit is contained in:
@@ -492,12 +492,13 @@ class IncScheduler(multi.Thread):
|
||||
|
||||
if destinationConfig['type'] == 'local':
|
||||
|
||||
|
||||
if jobConfig[IncScheduler.frequency] == type:
|
||||
|
||||
finalPath = '%s/%s' % (destinationConfig['path'].rstrip('/'), currentTime)
|
||||
command = 'mkdir -p %s' % (finalPath)
|
||||
ProcessUtilities.executioner(command)
|
||||
|
||||
if jobConfig[IncScheduler.frequency] == type:
|
||||
|
||||
### Check if an old job prematurely killed, then start from there.
|
||||
try:
|
||||
oldJobContinue = 1
|
||||
@@ -600,16 +601,19 @@ Automatic backup failed for %s on %s.
|
||||
backupjob.config = json.dumps(jobConfig)
|
||||
backupjob.save()
|
||||
else:
|
||||
|
||||
|
||||
if jobConfig[IncScheduler.frequency] == type:
|
||||
|
||||
import subprocess
|
||||
import shlex
|
||||
finalPath = '%s/%s' % (destinationConfig['path'].rstrip('/'), currentTime)
|
||||
command = "ssh -o StrictHostKeyChecking=no -p " + destinationConfig[
|
||||
'port'] + " -i /root/.ssh/cyberpanel " + destinationConfig['username'] + "@" + destinationConfig[
|
||||
'port'] + " -i /root/.ssh/cyberpanel " + destinationConfig['username'] + "@" + \
|
||||
destinationConfig[
|
||||
'ip'] + " mkdir -p %s" % (finalPath)
|
||||
subprocess.call(shlex.split(command))
|
||||
|
||||
if jobConfig[IncScheduler.frequency] == type:
|
||||
|
||||
### Check if an old job prematurely killed, then start from there.
|
||||
# try:
|
||||
# oldJobContinue = 1
|
||||
|
||||
Reference in New Issue
Block a user