mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +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 destinationConfig['type'] == 'local':
|
||||||
|
|
||||||
finalPath = '%s/%s' % (destinationConfig['path'].rstrip('/'), currentTime)
|
|
||||||
command = 'mkdir -p %s' % (finalPath)
|
|
||||||
ProcessUtilities.executioner(command)
|
|
||||||
|
|
||||||
if jobConfig[IncScheduler.frequency] == type:
|
if jobConfig[IncScheduler.frequency] == type:
|
||||||
|
|
||||||
|
finalPath = '%s/%s' % (destinationConfig['path'].rstrip('/'), currentTime)
|
||||||
|
command = 'mkdir -p %s' % (finalPath)
|
||||||
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
### Check if an old job prematurely killed, then start from there.
|
### Check if an old job prematurely killed, then start from there.
|
||||||
try:
|
try:
|
||||||
oldJobContinue = 1
|
oldJobContinue = 1
|
||||||
@@ -600,16 +601,19 @@ Automatic backup failed for %s on %s.
|
|||||||
backupjob.config = json.dumps(jobConfig)
|
backupjob.config = json.dumps(jobConfig)
|
||||||
backupjob.save()
|
backupjob.save()
|
||||||
else:
|
else:
|
||||||
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[
|
|
||||||
'ip'] + " mkdir -p %s" % (finalPath)
|
|
||||||
subprocess.call(shlex.split(command))
|
|
||||||
|
|
||||||
if jobConfig[IncScheduler.frequency] == type:
|
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[
|
||||||
|
'ip'] + " mkdir -p %s" % (finalPath)
|
||||||
|
subprocess.call(shlex.split(command))
|
||||||
|
|
||||||
### Check if an old job prematurely killed, then start from there.
|
### Check if an old job prematurely killed, then start from there.
|
||||||
# try:
|
# try:
|
||||||
# oldJobContinue = 1
|
# oldJobContinue = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user