代码拉取完成,页面将自动刷新
#!/bin/bash
version_date=$(date '+%Y-%m-%d_%H-%M-%S')
version_path=./archived_docs/docs_${version_date}/
mkdir ${version_path}
# backup blog content
cp -rp website/blog ${version_path}
# backup DB-oracle content
cp -rp website/docs/DB-Oracle ${version_path}
# backup DB-sqlserver content
cp -rp website/docs/DB-MS\ Server ${version_path}
# backup DB-tidb content
cp -rp website/docs/DB-TiDB ${version_path}
# backup Scenario content
cp -rp website/docs/Scenario-DB ${version_path}
touch ${version_path}README.md
echo "Please input some message about this commit,"
echo "using statement : echo 'YOUR MESSAGE' > ${version_path}README.md"
# update the new docs about tidb
rm -rf website/docs/DB-TiDB/*
cp -rp docs-tidb/* website/docs/DB-TiDB
# update the new docs about oracle
rm -rf website/docs/DB-Oracle/*
cp -rp docs-oracle/* website/docs/DB-Oracle
# update the new docs about sqlserver
rm -rf website/docs/DB-MS\ Server/*
cp -rp docs-sqlserver/* website/docs/DB-MS\ Server
# update the new docs about Scenario
rm -rf website/docs/Scenario-DB/*
cp -rp docs-scenario/* website/docs/Scenario-DB
# update the new docs about blog
rm -rf website/blog/*
cp -rp docs-blog/* website/blog
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。