mac系统配置
rsync安装
brew install rsync
同步图片的时候,执行以下命令
rsync -avz -e "ssh -i /Users/textzwb/id_ed25519" /Users/textzwb/Documents/code_space/2025_hugo_blog/static/ ubuntu@124.220.216.66:/home/ubuntu/hugo_dist/static/
还可以使用 vscode 中的插件-sync-rsync,配置如下
{
"security.workspace.trust.untrustedFiles": "open",
"sync-rsync.sites": [],
"sync-rsync.local": "/Users/textzwb/Documents/code_space/2025_hugo_blog/static/",
"sync-rsync.notification": true,
"sync-rsync.onLoadIndividual": true,
"sync-rsync.remote": "ubuntu@124.220.216.66:/home/ubuntu/hugo_dist/static/",
"sync-rsync.args": [
"-e \"ssh -i /Users/textzwb/id_ed25519\" "
],
"sync-rsync.flags": "avz",
"sync-rsync.executable": "/usr/bin/rsync",
"sync-rsync.executableShell": "bash"
}