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

This commit is contained in:
2025-12-22 10:09:35 +08:00
parent c49c3b40d8
commit 33929b8284
3 changed files with 34 additions and 6 deletions

24
scripts/config.json Normal file
View File

@@ -0,0 +1,24 @@
{
"source": {
"type": "local",
"base_dir": "public/storage",
"ssh": {
"host": "source-server.example.com",
"port": 22,
"username": "username",
"password": "your_password_here",
"key_file": ""
}
},
"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": ""
}
}
}