我在桌面上使用本地svn repo。当我在存储库文件夹上手动启用EFS时,SVN无法访问它。但是,当我没有登录时,我希望对存储库进行加密。任何想法和建议都将不胜感激。
答案 0 :(得分:1)
当我遇到类似的问题时,我使用vbscript在注销期间加密文件夹并在登录期间解密它。如果您使用的是Windows,则可以使用以下vbscript。在两个单独的文件中创建两个脚本。
'Encrypt.vbs
Dim strDir, objShell, FSO, WshShell
strDir = "D:\Repositories"
Set objShell = CreateObject("Shell.Application")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set WshShell = WScript.CreateObject("WScript.Shell")
retval = WshShell.Run("CIPHER /E /S:" & strDir, 0, True)
MsgBox("Success")
'Decrypt.vbs
Dim strDir, objShell, FSO, WshShell
strDir = "D:\Repositories"
Set objShell = CreateObject("Shell.Application")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set WshShell = WScript.CreateObject("WScript.Shell")
retval = WshShell.Run("CIPHER /D /S:" & strDir, 0, True)
MsgBox("Success")