如何在硬盘之间复制整个工作副本?

发布于 2024-07-13 02:54:03 字数 186 浏览 6 评论 0原文

每当我尝试在两台计算机之间使用简单的拖放操作来复制整个工作副本(例如从旧计算机到新计算机,或从一台虚拟机到另一台虚拟机)时,以避免必须重新下载整个几GB的代码集在我们的在线存储库中,当我到达任何隐藏的 SVN-BASE 文件时,我就会收到错误消息。

有没有办法完整地复制整个工作副本?

我使用的是 Vista x64。

Whenever I try to copy an entire working copy using simple drag and drop between two computers (e.g. from an old computer to a new one, or from one VM to another) in order to avoid having to redownload the entire several GB set of code from our online repository I get an error as soon as I reach any of the hidden SVN-BASE files.

Is there a way to copy an entire working copy with these intact?

I'm using Vista x64.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

苦行僧 2024-07-20 02:54:03

我无法回答 Vista,但在 XP 上你只需复制目录即可。

我猜想 Vista 已经决定这些文件是隐藏的,因此不需要复制,或者它们被锁定并且无法复制。 在前者中,使它们不隐藏(使用资源管理器的组织菜单中的全局文件选项,在文件夹和搜索选项下,查看选项卡),在后者中,尝试停止可能保留它们的TortoiseSVN的缓存。

或者从命令提示符尝试 Xcopy。

I can't answer for Vista, but on XP you just copy the directory.

I guess that Vista has decided that the files are hidden and so do not need to be copied, or they're locked and not available for copying. In the former, make them un-hidden (with the global file options in explorer's Organise menu, under folder & Search options, view tab), in the latter, try stopping TortoiseSVN's cache which might be holding on to them.

or try Xcopy from a command prompt.

仙女 2024-07-20 02:54:03

我建议在实用程序上使用命令行作为 Total Commander; 资源管理器和拖放功能并不可靠。 如果你告诉我你遇到了什么错误,可能会更有帮助。

对于命令行,有 xcopy,它将完全满足您的需要。

I suggest using the command line on an utility as Total Commander; Explorer and Drag&Drop are just not reliable. You could have been a little more helpful by telling what error you are getting.

For the command line, there is xcopy, which will do exactly what you need.

多孤肩上扛 2024-07-20 02:54:03

当我设置一台新的 Windows 机器时,我首先安装的东西之一是 Cygwin。 在 Windows 出现之前,我几乎不认为它已准备就绪。 使用 Cygwin,我确保包含 rsync,并且我会使用 rsync 进行复制,因为它速度很快,并且稍后当我只需要复制差异时会更快。

如果这是您安装 Cygwin 的唯一原因,那么这将是一个大锤子。 但如果你已经得到了它,没有比 rsync 更好的方法了。 另外,rsync 白皮书是我一直以来的最爱之一。 ;)

One of the first things I install when I set up a new Windows machine is Cygwin. I almost don't consider Windows ready until it's on there. With Cygwin, I make sure that rsync's included, and I would use rsync to do the copy, since it's fast and will be faster later when I just need to copy the diffs over.

Now this is a big hammer if that's the only reason you're installing Cygwin. But if you've already got it, there's no better way than rsync. Plus, the rsync whitepaper is one of my all-time favorites. ;)

薄情伤 2024-07-20 02:54:03

您是否尝试过 rsync,它有一个选项可以跳过 SVN 存储库等目录?

此外,它使用非常高效的增量文件传输算法来节省传输时间。

Have you tried rsync, which has an option for skipping directories such as SVN repositories?

In addition, it uses a very efficient incremental file transfer algorithm to save transfer time.

酷炫老祖宗 2024-07-20 02:54:03

您可以尝试

xcopy /h /e <src dir> <dest dir>

复制“src dir”的全部内容,包括空文件夹和隐藏文件。

You can try

xcopy /h /e <src dir> <dest dir>

which will copy the entire contents of 'src dir', including empty folders and hidden files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文