Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从具有 rsync over ssh 的服务器上获取 Raspberry Pi 上的文件。这是我现在的命令:
rsync --delete -avz -e ssh USER@SERVER:'/server/directory' '/traget/directory'
我需要添加什么才能仅从该目录中获取该目录的内容而没有该目录?
在目录末尾添加“/”:
rsync --delete -avz -e ssh USER@SERVER:'/server/directory/' '/traget/directory/.'