Skip to content

Commit

Permalink
计划任务备份网站和目录时提供文件目录的排除规则
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed Jun 24, 2019
1 parent f4fb0da commit 087ff05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions BTPanel/static/js/crontab.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function edit_task_info(id){
</div>\
</div>\
<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">脚本内容</span>\
<span class="typename controls c4 pull-left f14 text-right mr20">'+ (obj.from.sType == "toShell" ?'脚本内容':'排除规则')+'</span>\
<div style="line-height:22px"><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') +'">\
Expand Down Expand Up @@ -821,7 +821,7 @@ function toBackup(type){
</div>';
if (sType == 'sites') {
sBody += '<p class="clearfix plan">\
<div class="textname pull-left mr20" style="margin-left: 63px; font-size: 14px;">排除目录</div>\
<div class="textname pull-left mr20" style="margin-left: 63px; font-size: 14px;">排除规则</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="每行一条规则,目录不能以/结尾,示例:\ndata/config.php\nstatic/upload\n *.log\n"></textarea></span>\
</div>\
Expand Down
1 change: 1 addition & 0 deletions BTPanel/templates/default/crontab.html
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ <h3 class="f16">{{data['lan']['H3']}}</h3>
<ul class="help-info-text c7 ptb15 mlr20">
<li>当添加完备份任务,应该手动运行一次,并检查备份包是否完整</li>
<li>磁盘容量不够、数据库密码错误、网络不稳定等原因,可能导致数据备份不完整</li>
<li>备份站点和目录时支持文件或目录排除,请将需要排除功能的插件升级到最新版,如:阿里云OSS等</li>
</ul>
</div>
<form id="set-Config" action="/crontab?action=AddCrontab" enctype="multipart/form-data" method="post" style="display: none;">
Expand Down

0 comments on commit 087ff05

Please sign in to comment.