Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aaPanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
aaPanel
Commits
fc993c6e
Commit
fc993c6e
authored
Jun 26, 2019
by
jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide exclusion rules for file directories when scheduling tasks to back up sites and directories
parent
824cf8ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
crontab.js
BTPanel/static/js/crontab.js
+13
-5
No files found.
BTPanel/static/js/crontab.js
View file @
fc993c6e
...
...
@@ -97,7 +97,7 @@ function edit_task_info(id){
minute
:
rdata
.
where_minute
,
week
:
rdata
.
where1
,
sType
:
rdata
.
sType
,
sBody
:
rdata
.
sBody
,
sBody
:
rdata
.
sBody
==
'
undefined
'
?
''
:
rdata
.
sBody
,
sName
:
rdata
.
sName
,
backupTo
:
rdata
.
backupTo
,
save
:
rdata
.
save
,
...
...
@@ -213,9 +213,9 @@ function edit_task_info(id){
</div>
\
</div>
\
</div>
\
<div class="clearfix plan ptb10" style="display:
'
+
(
obj
.
from
.
sType
==
"
toShell
"
?
'
block;
'
:
'
none
'
)
+
'
">
\
<div class="clearfix plan ptb10" style="display:
'
+
(
(
obj
.
from
.
sType
==
"
toShell
"
||
obj
.
from
.
sType
==
'
site
'
||
obj
.
from
.
sType
==
'
path
'
)
?
'
block;
'
:
'
none
'
)
+
'
">
\
<span class="typename controls c4 pull-left f14 text-right mr20">
'
+
lan
.
crontab
.
shell_content
+
'
</span>
\
<div style="line-height:34px"><textarea class="txtsjs bt-input-text sBody_create" name="sBody">
'
+
obj
.
from
.
sBody
+
'
</textarea></div>
\
<div style="line-height:34px"><textarea
style="line-height:22px"
class="txtsjs bt-input-text sBody_create" name="sBody">
'
+
obj
.
from
.
sBody
+
'
</textarea></div>
\
</div>
\
<div class="clearfix plan ptb10" style="display:
'
+
(
obj
.
from
.
sType
==
"
rememory
"
?
'
block;
'
:
'
none
'
)
+
'
">
\
<span class="typename controls c4 pull-left f14 text-right mr20">
'
+
lan
.
crontab
.
tips
+
'
</span>
\
...
...
@@ -560,7 +560,7 @@ function planAdd(){
return
;
}
}
else
{
if
(
sBody
==
''
){
if
(
sBody
==
''
&&
sType
==
'
toShell
'
){
$
(
"
#implement textarea[name='sBody']
"
).
focus
();
layer
.
msg
(
lan
.
crontab
.
input_script_err
,{
icon
:
2
});
return
;
...
...
@@ -819,6 +819,14 @@ function toBackup(type){
<span><input type="number" name="save" id="save" value="3" maxlength="4" max="100" min="1"></span>
\
<span class="name">
'
+
lan
.
crontab
.
save_num
+
'
</span>
\
</div>
'
;
if
(
sType
==
'
sites
'
)
{
sBody
+=
'
<p class="clearfix plan">
\
<div class="textname pull-left mr20" style="margin-left: 63px; font-size: 14px;">
'
+
lan
.
public
.
exclusion_rule
+
'
</div>
\
<div class="dropdown planBackupTo pull-left mr20">
\
<span><textarea style=" height: 100px;width:300px;line-height:22px;" class="bt-input-text" type="text" name="sBody" id="exclude" placeholder="
'
+
lan
.
crontab
.
exclusion_rule_tips
+
'
\n
data/config.php
\n
static/upload
\n
*.log
\n
"></textarea></span>
\
</div>
\
</p>
'
;
}
$
(
"
#implement
"
).
html
(
sBody
);
getselectname
();
$
(
"
.dropdown ul li a
"
).
click
(
function
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment