在本地缓存特定的网络存储目录

在本地缓存特定的网络存储目录

我需要一个解决方案,让我能够选择网络存储 (NAS) 上的某些目录,将其本地缓存在我的 SSD 上。我设想的工作原理类似于 Google Drive Filestream,我可以查看、使用和编辑网络驱动器上的所有文件,但我可以选择要本地缓存的特定目录或文件。然后我希望看到一些视觉表示(如绿色复选标记),表明该目录已本地缓存,如果我(或我 PC 上的任何程序)请求该文件,它实际上将从我的本地存储加载,而不是通过 LAN。该目录将与 NAS 保持同步。当我不再需要高速访问该目录时,我可以取消缓存。

为了更好地描述我的用例,我需要它来进行视频编辑。NAS 将提供卓越的容量、RAID 驱动器冗余以及多个团队成员协作的能力。正在积极开展的项目目录将在本地缓存,以实现高容量 I/O(视频编辑在编辑阶段对 I/O 要求很高),并与 NAS 保持同步。

有什么办法可以解决这个问题吗,最好是在 Windows 上原生解决?当然也欢迎使用其他方法。

谢谢你!

答案1

Windows 包含一项功能,称为脱机文件已经延续了几代人。

要进行设置,请选择要离线使用的网络文件或文件夹,右键单击它们,然后选择始终可离线使用

您可以使用任务栏中的同步中心图标来管理这些内容。它是一个绿色圆圈,里面有黄色的圆形箭头。

您还可以更改离线缓存的默认本地存储位置。默认情况下,这些文件存储在 中C:\Windows\CSC,但您可以按照以下说明进行更改:

From an elevated command prompt, run the following command:
REG ADD “HKLMSystemCurrentControlSetServicesCSCParameters” /v MigrationParameters /t REG_DWORD /d 1 /f
Run the following command as a user who is a local administrator, substituting the drive letter if necessary:
c:windowssystem32migwizmigwiz.exe
In the Windows Easy Transfer wizard, select the following options as you progress through the wizard:
a. Click Start a New Transfer.
b. Click My old computer.
c. Click Use a CD, DVD or other removable media.
d. Click External hard disk or to a network location.
e. Enter a path where you want to save Savedata.mig, and then click Next.
f. Click Advanced options.
g. On the Select user accounts, files, and settings to transfer page, do the following: 
    i. Deselect all check boxes.
    ii.Under System and program settings (all users), expand Windows Settings, expand Network and Internet, and then select the Offline Files check box.
   iii. Repeat the previous procedure for each user listed on the page.
h. Click Next to begin the transfer process.
In the registry, create a string value called CacheLocation under HKLMSystemCurrentControlSetServicesCSCParameters. To this value, assign the NT format name of the new folder where you want the cache to be. For example, if you want the cache to be in d:csc, type ??d:csc.
Create d:csc (or whatever path you used in the previous step).
Restart the computer.
Run c:windowssystem32migwizmigwiz.exe and select the following options as you progress through the wizard:
a. Click Continue a transfer in progress.
b. Click No, I’ve copied files and settings to a CD, DVD, or other removable media.
c. Click On an external hard disk or network location.
d. Enter the path to the .mig file created in Step 3e.
e. Map the user account on the old computer to the corresponding one on the new computer.
f. Click Next, and then click Transfer. 
Log off, log on, and then make sure you can correctly access your offline files.

从这里:https://blogs.technet.microsoft.com/filecab/2006/12/12/moving-the-offline-files-cache-in-windows-vista/

相关内容