feat: 图片迁移脚本
Some checks failed
Gitea Actions Official-website / deploy-dev (push) Failing after 3s

This commit is contained in:
2025-12-20 16:41:17 +08:00
parent 64e5c4fe26
commit 60177fe0b4
6 changed files with 1555 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
{
"source": {
"type": "local",
"base_dir": "/var/www/html/orico-official-website/public/storage",
"ssh": {
"host": "source-server.example.com",
"port": 22,
"username": "username",
"password": "your_password_here",
"key_file": "/path/to/private/key"
}
},
"target": {
"type": "ssh",
"base_dir": "/www/wwwroot/orico-official-website/public/storage",
"ssh": {
"host": "47.91.149.172",
"port": 22,
"username": "root",
"password": "Orico666tx5d",
"key_file": ""
}
}
}

View File

@@ -0,0 +1,12 @@
# 图片路径示例文件
# 每行一个相对路径(相对于配置文件中指定的基础目录)
# 空行和以 # 开头的行会被忽略
# 路径使用正斜杠 /即使在Windows系统上
# 注意:这些路径都是相对路径
# 实际文件在源服务器上的完整路径是:源基础目录 + 相对路径
# 例如:如果源基础目录是 /var/www/html/images
# 那么 uploads/products/2024/01/product1.jpg 对应的完整路径是:
# /var/www/html/images/uploads/products/2024/01/product1.jpg
images/article/logo.png