我正在尝试配置 rsnapshot(使用 rsync)来备份 Windows 服务器,但是我遇到了 rsync 无法跟踪要备份的服务器上的符号链接的问题。
我使用以下脚本创建指向最新卷影副本卷的链接,以便 rsync 可以访问它:
#!/bin/sh
# Mount the latest shadow copy for the specified volume
VOLUME="D:"
LINK_NAME="E:\\latest-data-shadow-copy"
SHADOW_VOLUME=`vssadmin list shadows /for=$VOLUME | grep "Shadow Copy Volume:" | tail -1 | tr -s ' ' | cut -d ' ' -f5`
SHADOW_VOLUME+="\\" …Run Code Online (Sandbox Code Playgroud)