rsync PC通过ssh同步到Android,报告:rsync:符号链接...失败:权限被拒绝(13)

问题描述 投票:0回答:1

Android ssh 应用程序:SimpleSSHD

$ rsync -av --delete -e 'ssh -p 2222' ~/xiaguangbo 192.168.1.118:/sdcard
...
rsync: symlink "/sdcard/xiaguangbo/data/esp/espressif/tools/riscv32-esp-elf/esp-13.2.0_20240530/riscv32-esp-elf/lib/gcc/riscv32-esp-elf/13.2.0/plugin/libcp1plugin.so" -> "libcp1plugin.so.0.0.0" failed: Permission denied (13)
...
rsync: symlink "/sdcard/xiaguangbo/project/tempctrl/program_esp32c2/project/target/riscv32imc-esp-espidf/release/build/esp-idf-sys-d9828311749dae4a/out/build/esp-idf/mbedtls/mbedtls/library/ssl_debug_helpers_generated.c" -> "/home/xiaguangbo/桌面/data/esp/espressif/esp-idf/v5.3/components/mbedtls/mbedtls/library/ssl_debug_helpers_generated.c" failed: Permission denied (13)
android rsync
1个回答
0
投票

-a
-rlptgoD

-l
--links, -l: copy symlinks as symlinks

-L
--copy-links, -L: transform symlink into referent file/dir

使用

L
替换‘l’

结果:

rsync -rLptgoDvzi --delete -e 'ssh -p 2222' ~/xiaguangbo 192.168.1.126:/sdcard

© www.soinside.com 2019 - 2024. All rights reserved.