1 Star 0 Fork 53

Fork Bomb/project_13384759

forked from chuanjiao10/kasini3000 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
hf恢复nodelist.ps1 710 Bytes
一键复制 编辑 原始数据 按行查看 历史
chuanjiao10 提交于 2020-12-16 12:44 . 优化0update_k记饭店_from_git.ps1
#建议保存编码为:bom头 + utf8
if (Test-Path -LiteralPath $global:备份目录)
{
$今天日期 = Get-Date -Format 'yyyyMMdd'
$备份库目录加日期 = "${global:备份目录}/${今天日期}"
if (Test-Path -LiteralPath $备份库目录加日期)
{
if ( ($IsWindows -eq $True) -or ($PSVersionTable.psversion.major -lt 6) ) #win
{
Copy-Item -Path "${备份库目录加日期}\nodelist*.*" -Destination 'c:\ProgramData\kasini3000'
}
if ($IsLinux -eq $True)
{
Copy-Item -Path "${备份库目录加日期}/nodelist*.*" -Destination '/etc/kasini3000'
}
Write-Verbose 'nodelist 文件恢复完毕'
}
}
else
{
Write-Error "错误,找不到备份库目录"
exit 3
}
exit 0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PowerShell
1
https://gitee.com/forkbomb/kasini3000.git
git@gitee.com:forkbomb/kasini3000.git
forkbomb
kasini3000
project_13384759
master

搜索帮助