Skip to content

wapele/baksql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

baksql

##thinkpkhp5 sql备份还原下载

//数据库备份 public function bak(){ $type=input("tp"); $name=input("name"); $sql=new \org\Baksql(\think\Config::get("database")); switch ($type) { case "backup": //备份 return $sql->backup(); break;
case "dowonload": //下载 $sql->downloadFile($name); break;
case "restore": //还原 return $sql->restore($name); break; case "del": //删除 return $sql->delfilename($name); break;
default: //获取备份文件列表 return $this->fetch("db_bak",["list"=>$sql->get_filelist()]);

    }
    
}
http://www.thinkphp.cn/extend/764.html

About

thinkpkhp5 sql备份还原下载

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages