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)
-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