js中将数据存到硬盘_如何在Windows 7中将数据备份到虚拟硬盘
js中将数据存到硬盘
Having a solid backup plan is a must if you have important data on your PC that you don’t want to lose. Today we take a look at a unique way of using a virtual hard drive in Windows 7 to back up some files.
如果您不想丢失PC上的重要数据,则必须制定可靠的备份计划。 今天,我们来看看在Windows 7中使用虚拟硬盘驱动器备份某些文件的独特方法。
Create a Virtual Hard Drive (VHD)
创建虚拟硬盘驱动器(VHD)
The first thing we need to do is create a VHD. In this article we are concentrating on how to backup your data to a VHD, we’ll briefly cover how to create one, but make sure and check out our full tutorial on how to create a VHD in Windows 7.
我们需要做的第一件事是创建一个VHD。 在本文中,我们将重点介绍如何将数据备份到VHD,我们将简要介绍如何创建数据,但是请确保并查看有关如何在Windows 7中创建VHD的完整教程。
In this example we’re creating a 2GB VHD, but you can make it whatever size you think you’ll need for your data.
在此示例中,我们将创建2GB VHD,但是您可以将其设置为您认为数据所需的任何大小。
Right-click on Computer and select Manage and when the Computer Management screen opens under Storage highlight Disk Management then click on Action \ Create VHD.
右键单击“计算机”,然后选择“管理”,然后在“存储”下打开“计算机管理”屏幕时,突出显示“磁盘管理”,然后单击“操作\创建VHD”。
Select a location on your machine where you want the VHD to live and its size. You can created it on your local drive, or in this example we placed it on an attached external drive. Decide if you want it to be Dynamically expanding or a Fixed size. Then You will see the virtual drive listed as Unknown unallocated space. Right-click the left box and Initialize Disk.
在您的计算机上选择要放置VHD的位置及其大小。 您可以在本地驱动器上创建它,或者在本示例中,我们将其放置在连接的外部驱动器上。 确定是否要动态扩展或固定大小。 然后,您将看到虚拟驱动器列为“未知的未分配空间”。 右键单击左侧框,然后初始化磁盘 。
Right-click the Unallocated area and select New Simple Volume.
右键单击“未分配”区域,然后选择“新建简单卷”。
The New Simple Volume Wizard opens up and you can select to format the volume and give it a label and follow through the wizard.
将打开“新建简单卷向导”,您可以选择格式化卷并为其指定标签,然后按照向导进行操作。
When you’re done, you will see the new VHD listed under Hard Disk Drives in Computer. Now you can use it as you would any drive, and we are going to backup to it.
完成后,您将在“计算机中的硬盘驱动器”下看到新的VHD。 现在,您可以像使用任何驱动器一样使用它,我们将备份到它。
You can simply drag files to it, or set it for backup with Windows Backup and Restore or the backup app of your preference. Here we’ll use Windows 7 Backup and Restore. Type backup and restore into the Search box in the Start Menu and hit Enter.
您可以简单地将文件拖到其中,或使用Windows备份和还原或您喜欢的备份应用程序将其设置为备份。 在这里,我们将使用Windows 7备份和还原 。 在“开始”菜单的“搜索”框中键入backup and restore,然后单击Enter。
Click on Set up backup…
点击设置备份 ...
Select the VHD we just created…it might say there isn’t enough space, but we will be picking specific files to be backed up that will fit in the 2GB VHD.
选择我们刚刚创建的VHD…可能会说没有足够的空间,但是我们将选择要备份的适合2GB VHD的特定文件。
Here is where you’ll want to select Let me choose…
这是您要选择让我选择的地方...
Now you can go through and select the files and folders you want to backup. In this example we’re only backing up a few documents, well under the 2GB size of the VHD. Uncheck Include a system image of drives before continuing on, as you should’ve already created one.
现在,您可以浏览并选择要备份的文件和文件夹。 在此示例中,我们仅备份了几份文档,远低于VHD的2GB大小。 在继续之前,取消选中包括驱动器的系统映像 ,因为您应该已经创建了一个 。
You can schedule the backup to run on a regular schedule if you want.
您可以根据需要安排备份以使其定期运行。
After you have everything selected, review your backup settings and click Save settings and run backup.
选中所有内容后,请检查您的备份设置,然后点击保存设置并运行备份 。
The backup kicks off and you’ll get a progress bar while it takes place.
备份开始,您将在进度条上看到一个进度条。
After the backup is finished you can go into your VHD and check out the files you’ve backed up.
备份完成后,您可以进入VHD并签出已备份的文件。
Then you can just drag the files out of the VHD or double-click on the Windows Backup and Restore icon to restore them.
然后,您可以将文件拖出VHD或双击Windows备份和还原图标来还原它们。
The ability to use VHDs is just another tool in for your backup strategy. The other cool thing is you can copy the VHD file to other locations. For instance a network share, external HD, thumb drive, use in a VM…etc. You definitely shouldn’t use this as your only backup strategy by any means, there are a lot of better backup methods out there, but it’s geeky, cool, and sometimes can be handy.
使用VHD的功能只是备份策略中的另一个工具。 另一个很酷的事情是您可以将VHD文件复制到其他位置。 例如网络共享,外部HD,拇指驱动器,在VM中使用…等。 您绝对不应该以任何方式将此作为唯一的备份策略,那里有很多更好的备份方法,但是它令人讨厌,很酷,并且有时很方便。
Speaking of VHDs, if you want to turn a physical drive into a VM, check out our article on Disk2vhd.
说到VHD,如果要将物理驱动器转换为VM, 请查看我们在Disk2vhd上的文章 。
翻译自: https://www.howtogeek.com/howto/19896/how-to-backup-your-data-to-a-virtual-hard-drive-in-windows-7/
js中将数据存到硬盘